Skip to content

Commit

Permalink
Extend Control of BLOB data dictionary feature
Browse files Browse the repository at this point in the history
Add 'XL' to the blob checks in _GenFields.

See #292
  • Loading branch information
obmsch authored and dregad committed Dec 29, 2019
1 parent bc4bfe4 commit 063b3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adodb-datadict.inc.php
Expand Up @@ -738,7 +738,7 @@ function _GenFields($flds,$widespacing=false)

$ftype = $this->_GetSize($ftype, $ty, $fsize, $fprec, $fOptions);

if (($ty == 'X' || $ty == 'X2' || $ty == 'B') && !$this->blobAllowsNotNull)
if (($ty == 'X' || $ty == 'X2' || $ty == 'XL' || $ty == 'B') && !$this->blobAllowsNotNull)
/*
* some blob types do not accept nulls, so we override the
* previously defined value
Expand All @@ -748,7 +748,7 @@ function _GenFields($flds,$widespacing=false)
if ($fprimary)
$pkey[] = $fname;

if (($ty == 'X' || $ty == 'X2' || $ty == 'B') && !$this->blobAllowsDefaultValue)
if (($ty == 'X' || $ty == 'X2' || $ty == 'XL' || $ty == 'B') && !$this->blobAllowsDefaultValue)
/*
* some databases do not allow blobs to have defaults, so we
* override the previously defined value
Expand Down

0 comments on commit 063b3af

Please sign in to comment.