From d7f2e273470af94cb8bf9f17ddf04983ec7371e8 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Wed, 27 Apr 2016 19:14:31 +0200 Subject: Whitespace --- drivers/adodb-mssql.inc.php | 10 +++++----- drivers/adodb-sqlite.inc.php | 6 +++--- drivers/adodb-sqlite3.inc.php | 38 +++++++++++++++++++------------------- 3 files changed, 27 insertions(+), 27 deletions(-) (limited to 'drivers') diff --git a/drivers/adodb-mssql.inc.php b/drivers/adodb-mssql.inc.php index ff3d2f6e..3a403f66 100644 --- a/drivers/adodb-mssql.inc.php +++ b/drivers/adodb-mssql.inc.php @@ -863,7 +863,7 @@ order by constraint_name, referenced_table_name, keyno"; { return ADORecordSet_array_mssql::UnixTimeStamp($v); } - + /** * Returns a substring of a varchar type field * @@ -881,11 +881,11 @@ order by constraint_name, referenced_table_name, keyno"; if ($length == 0) /* * The length available to varchar is 2GB, but that makes no - * sense in a substring, so I'm going to arbitrarily limit + * sense in a substring, so I'm going to arbitrarily limit * the length to 1K, but you could change it if you want */ $length = 1024; - + $text = "SUBSTRING($fld,$start,$length)"; return $text; } @@ -1106,7 +1106,7 @@ class ADORecordset_mssql extends ADORecordSet { } /** - * Returns the maximum size of a MetaType C field. Because of the + * Returns the maximum size of a MetaType C field. Because of the * database design, SQL Server places no limits on the size of data inserted * Although the actual limit is 2^31-1 bytes. * @@ -1118,7 +1118,7 @@ class ADORecordset_mssql extends ADORecordSet { } /** - * Returns the maximum size of a MetaType X field. Because of the + * Returns the maximum size of a MetaType X field. Because of the * database design, SQL Server places no limits on the size of data inserted * Although the actual limit is 2^31-1 bytes. * diff --git a/drivers/adodb-sqlite.inc.php b/drivers/adodb-sqlite.inc.php index 390df10f..05335f34 100644 --- a/drivers/adodb-sqlite.inc.php +++ b/drivers/adodb-sqlite.inc.php @@ -348,9 +348,9 @@ class ADODB_sqlite extends ADOConnection { } return $indexes; } - + /** - * Returns the maximum size of a MetaType C field. Because of the + * Returns the maximum size of a MetaType C field. Because of the * database design, sqlite places no limits on the size of data inserted * * @return int @@ -361,7 +361,7 @@ class ADODB_sqlite extends ADOConnection { } /** - * Returns the maximum size of a MetaType X field. Because of the + * Returns the maximum size of a MetaType X field. Because of the * database design, sqlite places no limits on the size of data inserted * * @return int diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php index 9c5ae36b..d38d5104 100644 --- a/drivers/adodb-sqlite3.inc.php +++ b/drivers/adodb-sqlite3.inc.php @@ -77,24 +77,24 @@ class ADODB_sqlite3 extends ADOConnection { } return !empty($ret); } - + function metaType($t,$len=-1,$fieldobj=false) { - + if (is_object($t)) { $fieldobj = $t; $t = $fieldobj->type; $len = $fieldobj->max_length; } - + $t = strtoupper($t); - + /* * We are using the Sqlite affinity method here * @link https://www.sqlite.org/datatype3.html */ - $affinity = array( + $affinity = array( 'INT'=>'INTEGER', 'INTEGER'=>'INTEGER', 'TINYINT'=>'INTEGER', @@ -127,22 +127,22 @@ class ADODB_sqlite3 extends ADOConnection { 'DATE'=>'NUMERIC', 'DATETIME'=>'NUMERIC' ); - + if (!isset($affinity[$t])) return ADODB_DEFAULT_METATYPE; - + $subt = $affinity[$t]; /* * Now that we have subclassed the provided data down * the sqlite 'affinity', we convert to ADOdb metatype */ - + $subclass = array('INTEGER'=>'I', 'TEXT'=>'X', 'BLOB'=>'B', 'REAL'=>'N', 'NUMERIC'=>'N'); - + return $subclass[$subt]; } // mark newnham @@ -191,14 +191,14 @@ class ADODB_sqlite3 extends ADOConnection { $ADODB_FETCH_MODE = $save; return $arr; } - + function metaForeignKeys( $table, $owner = FALSE, $upper = FALSE, $associative = FALSE ) { global $ADODB_FETCH_MODE; - if ($ADODB_FETCH_MODE == ADODB_FETCH_ASSOC - || $this->fetchMode == ADODB_FETCH_ASSOC) + if ($ADODB_FETCH_MODE == ADODB_FETCH_ASSOC + || $this->fetchMode == ADODB_FETCH_ASSOC) $associative = true; - + /* * Read sqlite master to find foreign keys */ @@ -219,12 +219,12 @@ class ADODB_sqlite3 extends ADOConnection { { if (!preg_match('/FOREIGN/',$y)) continue; - + $matches = false; preg_match_all('/\((.+?)\)/i',$y,$matches); $tmatches = false; preg_match_all('/REFERENCES (.+?)\(/i',$y,$tmatches); - + if ($associative) { if (!isset($fkeyList[$tmatches[1][0]])) @@ -234,7 +234,7 @@ class ADODB_sqlite3 extends ADOConnection { else $fkeyList[$tmatches[1][0]][] = $matches[1][0] . '=' . $matches[1][1]; } - + if ($associative) { if ($upper) @@ -463,9 +463,9 @@ class ADODB_sqlite3 extends ADOConnection { } return $indexes; } - + /** - * Returns the maximum size of a MetaType C field. Because of the + * Returns the maximum size of a MetaType C field. Because of the * database design, sqlite places no limits on the size of data inserted * * @return int @@ -476,7 +476,7 @@ class ADODB_sqlite3 extends ADOConnection { } /** - * Returns the maximum size of a MetaType X field. Because of the + * Returns the maximum size of a MetaType X field. Because of the * database design, sqlite places no limits on the size of data inserted * * @return int -- cgit v1.3