summaryrefslogtreecommitdiff
path: root/adodb-datadict.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-03-11 19:34:03 +0100
committerDamien Regad <dregad@mantisbt.org>2021-03-11 19:34:03 +0100
commitfa7997ce45243dccfc2794990111a69742c3d130 (patch)
treecfe095b0db5403e803c53c42c60eb041eb5e08c7 /adodb-datadict.inc.php
parent92346252254a4d3fb97ec0034a0832c271b68989 (diff)
downloadadodb-fa7997ce45243dccfc2794990111a69742c3d130.tar.gz
adodb-fa7997ce45243dccfc2794990111a69742c3d130.tar.bz2
adodb-fa7997ce45243dccfc2794990111a69742c3d130.zip
Whitespace
Diffstat (limited to 'adodb-datadict.inc.php')
-rw-r--r--adodb-datadict.inc.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/adodb-datadict.inc.php b/adodb-datadict.inc.php
index 30ede0e0..5e26300f 100644
--- a/adodb-datadict.inc.php
+++ b/adodb-datadict.inc.php
@@ -188,13 +188,13 @@ class ADODB_DataDict {
/*
* Indicates whether a BLOB/CLOB field will allow a NOT NULL setting
- * The type is whatever is matched to an X or X2 or B type. We must
+ * The type is whatever is matched to an X or X2 or B type. We must
* explicitly set the value in the driver to switch the behaviour on
*/
public $blobAllowsNotNull;
/*
* Indicates whether a BLOB/CLOB field will allow a DEFAULT set
- * The type is whatever is matched to an X or X2 or B type. We must
+ * The type is whatever is matched to an X or X2 or B type. We must
* explicitly set the value in the driver to switch the behaviour on
*/
public $blobAllowsDefaultValue;
@@ -681,11 +681,11 @@ class ADODB_DataDict {
//-----------------
// Parse attributes
foreach($fld as $attr => $v) {
- if ($attr == 2 && is_numeric($v))
+ if ($attr == 2 && is_numeric($v))
$attr = 'SIZE';
- elseif ($attr == 2 && strtoupper($ftype) == 'ENUM')
+ elseif ($attr == 2 && strtoupper($ftype) == 'ENUM')
$attr = 'ENUM';
- else if (is_numeric($attr) && $attr > 1 && !is_numeric($v))
+ else if (is_numeric($attr) && $attr > 1 && !is_numeric($v))
$attr = strtoupper($v);
switch($attr) {
@@ -747,9 +747,9 @@ class ADODB_DataDict {
* some blob types do not accept nulls, so we override the
* previously defined value
*/
- $fnotnull = false;
+ $fnotnull = false;
- if ($fprimary)
+ if ($fprimary)
$pkey[] = $fname;
if (($ty == 'X' || $ty == 'X2' || $ty == 'XL' || $ty == 'B') && !$this->blobAllowsDefaultValue)
@@ -846,7 +846,7 @@ class ADODB_DataDict {
if (strlen($fprec)) $ftype .= ",".$fprec;
$ftype .= ')';
}
-
+
/*
* Handle additional options
*/
@@ -859,12 +859,12 @@ class ADODB_DataDict {
case 'ENUM':
$ftype .= '(' . $value . ')';
break;
-
+
default:
}
}
}
-
+
return $ftype;
}
@@ -927,7 +927,7 @@ class ADODB_DataDict {
return $sql;
}
}
-
+
$s = "CREATE TABLE $tabname (\n";
$s .= implode(",\n", $lines);
if (sizeof($pkey)>0) {