diff options
| author | Mark Newnham <mark@newnhams.com> | 2016-01-30 08:42:00 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2016-01-31 11:21:47 +0100 |
| commit | 6d71c2c4fa80e8be6019ebd20093dc7badf97b34 (patch) | |
| tree | 03a1dbcaef083f57eb36ee5d38d937acab7e23a6 /datadict | |
| parent | dde9ff06a6840985d70913d315266a33fc9c7943 (diff) | |
| download | adodb-6d71c2c4fa80e8be6019ebd20093dc7badf97b34.tar.gz adodb-6d71c2c4fa80e8be6019ebd20093dc7badf97b34.tar.bz2 adodb-6d71c2c4fa80e8be6019ebd20093dc7badf97b34.zip | |
Added optional argument to datadict/_getsize()
The private method datadict/_getSize() now has a new, optional 5th
argument that allows the passing of additional information for
processing data types
See issue #26
Diffstat (limited to 'datadict')
| -rw-r--r-- | datadict/datadict-mssql.inc.php | 4 | ||||
| -rw-r--r-- | datadict/datadict-mssqlnative.inc.php | 4 | ||||
| -rw-r--r-- | datadict/datadict-postgres.inc.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/datadict/datadict-mssql.inc.php b/datadict/datadict-mssql.inc.php index c5fd167a..86ac66ba 100644 --- a/datadict/datadict-mssql.inc.php +++ b/datadict/datadict-mssql.inc.php @@ -269,7 +269,7 @@ CREATE TABLE } - function _GetSize($ftype, $ty, $fsize, $fprec) + function _GetSize($ftype, $ty, $fsize, $fprec, $options=false) { switch ($ftype) { case 'INT': @@ -279,7 +279,7 @@ CREATE TABLE return $ftype; } if ($ty == 'T') return $ftype; - return parent::_GetSize($ftype, $ty, $fsize, $fprec); + return parent::_GetSize($ftype, $ty, $fsize, $fprec, $options); } } diff --git a/datadict/datadict-mssqlnative.inc.php b/datadict/datadict-mssqlnative.inc.php index 7f14f636..1edb85f5 100644 --- a/datadict/datadict-mssqlnative.inc.php +++ b/datadict/datadict-mssqlnative.inc.php @@ -301,7 +301,7 @@ CREATE TABLE } - function _GetSize($ftype, $ty, $fsize, $fprec) + function _GetSize($ftype, $ty, $fsize, $fprec,$options=false) { switch ($ftype) { case 'INT': @@ -311,7 +311,7 @@ CREATE TABLE return $ftype; } if ($ty == 'T') return $ftype; - return parent::_GetSize($ftype, $ty, $fsize, $fprec); + return parent::_GetSize($ftype, $ty, $fsize, $fprec, $options); } } diff --git a/datadict/datadict-postgres.inc.php b/datadict/datadict-postgres.inc.php index dd916cab..c94edcd5 100644 --- a/datadict/datadict-postgres.inc.php +++ b/datadict/datadict-postgres.inc.php @@ -472,7 +472,7 @@ CREATE [ UNIQUE ] INDEX index_name ON table return $sql; } - function _GetSize($ftype, $ty, $fsize, $fprec) + function _GetSize($ftype, $ty, $fsize, $fprec, $options=false) { if (strlen($fsize) && $ty != 'X' && $ty != 'B' && $ty != 'I' && strpos($ftype,'(') === false) { $ftype .= "(".$fsize; |
