summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2016-04-27 19:14:31 +0200
committerDamien Regad <dregad@mantisbt.org>2016-04-27 19:46:25 +0200
commitd7f2e273470af94cb8bf9f17ddf04983ec7371e8 (patch)
treecc45938919f0d26bcd47277e90552e5b50df4b8c
parent1212f9d410a63977246f00bbec68f33b2ff05e74 (diff)
downloadadodb-d7f2e273470af94cb8bf9f17ddf04983ec7371e8.tar.gz
adodb-d7f2e273470af94cb8bf9f17ddf04983ec7371e8.tar.bz2
adodb-d7f2e273470af94cb8bf9f17ddf04983ec7371e8.zip
Whitespace
-rw-r--r--adodb.inc.php4
-rw-r--r--drivers/adodb-mssql.inc.php10
-rw-r--r--drivers/adodb-sqlite.inc.php6
-rw-r--r--drivers/adodb-sqlite3.inc.php38
4 files changed, 29 insertions, 29 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 8df910ca..0c8976eb 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -1174,7 +1174,7 @@ if (!defined('_ADODB_LAYER')) {
);
return false;
}
-
+
// clean memory
unset($element0);
@@ -3104,7 +3104,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
{
return ADODB_STRINGMAX_NOTSET;
}
-
+
/**
* Returns a substring of a varchar type field
*
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