summaryrefslogtreecommitdiff
path: root/program/lib/MDB2/Driver/Datatype/sqlite.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/sqlite.php
parentbbf15d8115e19bf12b156e2a4d52221bcae40d6c (diff)
- fixed #1485032 and updated MDB2 package+drivers
Diffstat (limited to 'program/lib/MDB2/Driver/Datatype/sqlite.php')
-rw-r--r--program/lib/MDB2/Driver/Datatype/sqlite.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/program/lib/MDB2/Driver/Datatype/sqlite.php b/program/lib/MDB2/Driver/Datatype/sqlite.php
index e518e45fa..0310cc77d 100644
--- a/program/lib/MDB2/Driver/Datatype/sqlite.php
+++ b/program/lib/MDB2/Driver/Datatype/sqlite.php
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: sqlite.php,v 1.65 2007/12/03 20:59:51 quipo Exp $
+// $Id: sqlite.php,v 1.67 2008/02/22 19:58:06 quipo Exp $
//
require_once 'MDB2/Driver/Datatype/Common.php';
@@ -212,8 +212,6 @@ class MDB2_Driver_Datatype_sqlite 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';
@@ -394,7 +392,6 @@ class MDB2_Driver_Datatype_sqlite extends MDB2_Driver_Datatype_Common
if (PEAR::isError($db)) {
return $db;
}
-
return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'unknown database attribute type: '.$db_type, __FUNCTION__);
}