cvs: pear /MDB2/MDB2/Driver/Datatype Common.php
| From: | Ali Fazelzadeh | Date: | Mon, 11 Feb 2008 10:20:04 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Datatype Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-50980@lists.php.net to get a copy of this message | ||
afz Mon Feb 11 10:20:04 2008 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Datatype Common.php
Log:
also compatible with mysql/i
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.133&r2=1.134&diff_format=u
Index: pear/MDB2/MDB2/Driver/Datatype/Common.php
diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.133
pear/MDB2/MDB2/Driver/Datatype/Common.php:1.134
--- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.133 Sun Feb 10 16:09:57 2008
+++ pear/MDB2/MDB2/Driver/Datatype/Common.php Mon Feb 11 10:20:04 2008
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.133 2008/02/10 16:09:57 afz Exp $
+// $Id: Common.php,v 1.134 2008/02/11 10:20:04 afz Exp $
require_once 'MDB2/LOB.php';
@@ -511,10 +511,8 @@
$field['default'] = ' ';
}
}
- if (is_null($field['default'])) {
- $default = ' DEFAULT (null)';
- } else {
- $default = ' DEFAULT (' . $this->quote($field['default'],
$field['type']) . ')';
+ if (!is_null($field['default'])) {
+ $default = ' DEFAULT ' . $this->quote($field['default'],
$field['type']);
}
}