summaryrefslogtreecommitdiff
path: root/program/lib/MDB2/Driver/Datatype/pgsql.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-05-02 07:35:00 +0000
committeralecpl <alec@alec.pl>2008-05-02 07:35:00 +0000
commitd1403fd7268ccf96ab6e7d04506ea1b1802c7eb2 (patch)
tree8f830c1c80eeedc9cff5a041208255d8d8e008c9 /program/lib/MDB2/Driver/Datatype/pgsql.php
parentbbf15d8115e19bf12b156e2a4d52221bcae40d6c (diff)
- fixed #1485032 and updated MDB2 package+drivers
Diffstat (limited to 'program/lib/MDB2/Driver/Datatype/pgsql.php')
-rw-r--r--program/lib/MDB2/Driver/Datatype/pgsql.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/MDB2/Driver/Datatype/pgsql.php b/program/lib/MDB2/Driver/Datatype/pgsql.php
index 8a7e3ff33..c31c7d83a 100644
--- a/program/lib/MDB2/Driver/Datatype/pgsql.php
+++ b/program/lib/MDB2/Driver/Datatype/pgsql.php
@@ -42,7 +42,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: pgsql.php,v 1.88 2007/11/09 20:54:58 quipo Exp $
+// $Id: pgsql.php,v 1.91 2008/03/09 12:28:08 quipo Exp $
require_once 'MDB2/Driver/Datatype/Common.php';
@@ -217,8 +217,6 @@ class MDB2_Driver_Datatype_pgsql extends MDB2_Driver_Datatype_Common
$field['default'] = empty($field['notnull']) ? null : 0;
}
$default = ' DEFAULT '.$this->quote($field['default'], 'integer');
- } elseif (empty($field['notnull'])) {
- $default = ' DEFAULT NULL';
}
$notnull = empty($field['notnull']) ? '' : ' NOT NULL';
@@ -453,6 +451,7 @@ class MDB2_Driver_Datatype_pgsql extends MDB2_Driver_Datatype_Common
break;
case 'datetime':
case 'timestamp':
+ case 'timestamptz':
$type[] = 'timestamp';
$length = null;
break;
@@ -461,6 +460,7 @@ class MDB2_Driver_Datatype_pgsql extends MDB2_Driver_Datatype_Common
$length = null;
break;
case 'float':
+ case 'float4':
case 'float8':
case 'double':
case 'real':