cvs: pear /MDB2 package.php package_ibase.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php package_sqlite.php
/MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php
| From: | Lorenzo Alberton | Date: | Thu, 16 Nov 2006 09:36:16 +0000 |
| Subject: | cvs: pear /MDB2 package.php package_ibase.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php package_sqlite.php /MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43094@lists.php.net to get a copy of this message | ||
quipo Thu Nov 16 09:36:16 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php
oci8.php pgsql.php sqlite.php
/pear/MDB2 package.php package_ibase.php package_mysql.php
package_mysqli.php package_oci8.php package_pgsql.php
package_sqlite.php
Log:
propagate errors in getTableFieldDefinition() in the Reverse module
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/ibase.php?r1=1.59&r2=1.60&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/ibase.php diff -u pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.59 pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.60 --- pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.59 Sat Oct 14 14:17:39 2006 +++ pear/MDB2/MDB2/Driver/Reverse/ibase.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.59 2006/10/14 14:17:39 quipo Exp $ +// $Id: ibase.php,v 1.60 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -180,7 +180,11 @@ } else { $column['field_sub_type'] = null; } - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = !empty($column['null_flag']); $default = $column['default_source']; if (is_null($default) && $notnull) { http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/mysql.php?r1=1.60&r2=1.61&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysql.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.60 pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.61 --- pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.60 Mon Sep 25 23:39:35 2006 +++ pear/MDB2/MDB2/Driver/Reverse/mysql.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.60 2006/09/25 23:39:35 lsmith Exp $ +// $Id: mysql.php,v 1.61 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -97,7 +97,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (empty($column['null']) || $column['null'] !== 'YES') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/mysqli.php?r1=1.51&r2=1.52&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysqli.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.51 pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.52 --- pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.51 Sat Oct 14 13:36:50 2006 +++ pear/MDB2/MDB2/Driver/Reverse/mysqli.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.51 2006/10/14 13:36:50 lsmith Exp $ +// $Id: mysqli.php,v 1.52 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -151,7 +151,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (empty($column['null']) || $column['null'] !== 'YES') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/oci8.php?r1=1.49&r2=1.50&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/oci8.php diff -u pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.49 pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.50 --- pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.49 Fri Nov 3 12:52:20 2006 +++ pear/MDB2/MDB2/Driver/Reverse/oci8.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.49 2006/11/03 12:52:20 lsmith Exp $ +// $Id: oci8.php,v 1.50 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -102,7 +102,11 @@ $column['name'] = strtoupper($column['name']); } } - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['nullable']) && $column['nullable'] == 'N') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/pgsql.php?r1=1.51&r2=1.52&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/pgsql.php diff -u pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.51 pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.52 --- pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.51 Sat Oct 14 13:37:07 2006 +++ pear/MDB2/MDB2/Driver/Reverse/pgsql.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.51 2006/10/14 13:37:07 lsmith Exp $ +// $Id: pgsql.php,v 1.52 2006/11/16 09:36:15 quipo Exp $ require_once 'MDB2/Driver/Reverse/Common.php'; @@ -102,7 +102,11 @@ } $column = array_change_key_case($column, CASE_LOWER); - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['attnotnull']) && $column['attnotnull'] == 't') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/sqlite.php?r1=1.60&r2=1.61&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/sqlite.php diff -u pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.60 pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.61 --- pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.60 Sat Aug 12 15:44:03 2006 +++ pear/MDB2/MDB2/Driver/Reverse/sqlite.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.60 2006/08/12 15:44:03 lsmith Exp $ +// $Id: sqlite.php,v 1.61 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -159,7 +159,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['notnull'])) { $notnull = $column['notnull']; http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.223&r2=1.224&diff_format=u Index: pear/MDB2/package.php diff -u pear/MDB2/package.php:1.223 pear/MDB2/package.php:1.224 --- pear/MDB2/package.php:1.223 Fri Nov 3 13:18:11 2006 +++ pear/MDB2/package.php Thu Nov 16 09:36:16 2006 @@ -7,6 +7,8 @@ $version_api = $version_release; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - handle autoincrement fields in alterTable() - add length handling to LOB reverse engineering http://cvs.php.net/viewvc.cgi/pear/MDB2/package_ibase.php?r1=1.104&r2=1.105&diff_format=u Index: pear/MDB2/package_ibase.php diff -u pear/MDB2/package_ibase.php:1.104 pear/MDB2/package_ibase.php:1.105 --- pear/MDB2/package_ibase.php:1.104 Fri Nov 3 15:26:09 2006 +++ pear/MDB2/package_ibase.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,7 @@ $version = 'XXX'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module EOT; $description = 'This is the Interbase/Firebird MDB2 driver.'; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.84&r2=1.85&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.84 pear/MDB2/package_mysql.php:1.85 --- pear/MDB2/package_mysql.php:1.84 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_mysql.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,9 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- fixed bug #9283: missing support for BINARY/VARBINARY data types (thanks to Tom Hendrikx) +- propagate errors in getTableFieldDefinition() in the Reverse module + note: - the multi_query test failes because this is not supported by ext/mysql http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysqli.php?r1=1.87&r2=1.88&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.87 pear/MDB2/package_mysqli.php:1.88 --- pear/MDB2/package_mysqli.php:1.87 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_mysqli.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,9 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- fixed bug #9283: missing support for BINARY/VARBINARY data types (thanks to Tom Hendrikx) +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - use a trigger to emulate setting default now() EOT; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_oci8.php?r1=1.93&r2=1.94&diff_format=u Index: pear/MDB2/package_oci8.php diff -u pear/MDB2/package_oci8.php:1.93 pear/MDB2/package_oci8.php:1.94 --- pear/MDB2/package_oci8.php:1.93 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_oci8.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + note: - please use the latest ext/oci8 version from pecl.php.net/oci8 (binaries are available from snaps.php.net and pecl4win.php.net) http://cvs.php.net/viewvc.cgi/pear/MDB2/package_pgsql.php?r1=1.92&r2=1.93&diff_format=u Index: pear/MDB2/package_pgsql.php diff -u pear/MDB2/package_pgsql.php:1.92 pear/MDB2/package_pgsql.php:1.93 --- pear/MDB2/package_pgsql.php:1.92 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_pgsql.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - enable pg_execute() once issues with bytea column are resolved - use pg_result_error_field() to handle localized error messages (Request #7059) http://cvs.php.net/viewvc.cgi/pear/MDB2/package_sqlite.php?r1=1.75&r2=1.76&diff_format=u Index: pear/MDB2/package_sqlite.php diff -u pear/MDB2/package_sqlite.php:1.75 pear/MDB2/package_sqlite.php:1.76 --- pear/MDB2/package_sqlite.php:1.75 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_sqlite.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + note: open todo items: - fix pattern escaping using GLOB instead of LIKE or create an register own implementation of LIKE
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/ibase.php?r1=1.59&r2=1.60&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/ibase.php diff -u pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.59 pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.60 --- pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.59 Sat Oct 14 14:17:39 2006 +++ pear/MDB2/MDB2/Driver/Reverse/ibase.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.59 2006/10/14 14:17:39 quipo Exp $ +// $Id: ibase.php,v 1.60 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -180,7 +180,11 @@ } else { $column['field_sub_type'] = null; } - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = !empty($column['null_flag']); $default = $column['default_source']; if (is_null($default) && $notnull) { http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/mysql.php?r1=1.60&r2=1.61&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysql.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.60 pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.61 --- pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.60 Mon Sep 25 23:39:35 2006 +++ pear/MDB2/MDB2/Driver/Reverse/mysql.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.60 2006/09/25 23:39:35 lsmith Exp $ +// $Id: mysql.php,v 1.61 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -97,7 +97,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (empty($column['null']) || $column['null'] !== 'YES') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/mysqli.php?r1=1.51&r2=1.52&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysqli.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.51 pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.52 --- pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.51 Sat Oct 14 13:36:50 2006 +++ pear/MDB2/MDB2/Driver/Reverse/mysqli.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.51 2006/10/14 13:36:50 lsmith Exp $ +// $Id: mysqli.php,v 1.52 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -151,7 +151,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (empty($column['null']) || $column['null'] !== 'YES') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/oci8.php?r1=1.49&r2=1.50&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/oci8.php diff -u pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.49 pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.50 --- pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.49 Fri Nov 3 12:52:20 2006 +++ pear/MDB2/MDB2/Driver/Reverse/oci8.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.49 2006/11/03 12:52:20 lsmith Exp $ +// $Id: oci8.php,v 1.50 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -102,7 +102,11 @@ $column['name'] = strtoupper($column['name']); } } - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['nullable']) && $column['nullable'] == 'N') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/pgsql.php?r1=1.51&r2=1.52&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/pgsql.php diff -u pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.51 pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.52 --- pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.51 Sat Oct 14 13:37:07 2006 +++ pear/MDB2/MDB2/Driver/Reverse/pgsql.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.51 2006/10/14 13:37:07 lsmith Exp $ +// $Id: pgsql.php,v 1.52 2006/11/16 09:36:15 quipo Exp $ require_once 'MDB2/Driver/Reverse/Common.php'; @@ -102,7 +102,11 @@ } $column = array_change_key_case($column, CASE_LOWER); - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['attnotnull']) && $column['attnotnull'] == 't') { $notnull = true; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/sqlite.php?r1=1.60&r2=1.61&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/sqlite.php diff -u pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.60 pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.61 --- pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.60 Sat Aug 12 15:44:03 2006 +++ pear/MDB2/MDB2/Driver/Reverse/sqlite.php Thu Nov 16 09:36:15 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.60 2006/08/12 15:44:03 lsmith Exp $ +// $Id: sqlite.php,v 1.61 2006/11/16 09:36:15 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -159,7 +159,11 @@ $column = array_change_key_case($column, $db->options['field_case']); } if ($field_name == $column['name']) { - list($types, $length, $unsigned, $fixed) = $db->datatype->mapNativeDatatype($column); + $mapped_datatype = $db->datatype->mapNativeDatatype($column); + if (PEAR::IsError($mapped_datatype)) { + return $mapped_datatype; + } + list($types, $length, $unsigned, $fixed) = $mapped_datatype; $notnull = false; if (!empty($column['notnull'])) { $notnull = $column['notnull']; http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.223&r2=1.224&diff_format=u Index: pear/MDB2/package.php diff -u pear/MDB2/package.php:1.223 pear/MDB2/package.php:1.224 --- pear/MDB2/package.php:1.223 Fri Nov 3 13:18:11 2006 +++ pear/MDB2/package.php Thu Nov 16 09:36:16 2006 @@ -7,6 +7,8 @@ $version_api = $version_release; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - handle autoincrement fields in alterTable() - add length handling to LOB reverse engineering http://cvs.php.net/viewvc.cgi/pear/MDB2/package_ibase.php?r1=1.104&r2=1.105&diff_format=u Index: pear/MDB2/package_ibase.php diff -u pear/MDB2/package_ibase.php:1.104 pear/MDB2/package_ibase.php:1.105 --- pear/MDB2/package_ibase.php:1.104 Fri Nov 3 15:26:09 2006 +++ pear/MDB2/package_ibase.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,7 @@ $version = 'XXX'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module EOT; $description = 'This is the Interbase/Firebird MDB2 driver.'; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.84&r2=1.85&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.84 pear/MDB2/package_mysql.php:1.85 --- pear/MDB2/package_mysql.php:1.84 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_mysql.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,9 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- fixed bug #9283: missing support for BINARY/VARBINARY data types (thanks to Tom Hendrikx) +- propagate errors in getTableFieldDefinition() in the Reverse module + note: - the multi_query test failes because this is not supported by ext/mysql http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysqli.php?r1=1.87&r2=1.88&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.87 pear/MDB2/package_mysqli.php:1.88 --- pear/MDB2/package_mysqli.php:1.87 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_mysqli.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,9 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- fixed bug #9283: missing support for BINARY/VARBINARY data types (thanks to Tom Hendrikx) +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - use a trigger to emulate setting default now() EOT; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_oci8.php?r1=1.93&r2=1.94&diff_format=u Index: pear/MDB2/package_oci8.php diff -u pear/MDB2/package_oci8.php:1.93 pear/MDB2/package_oci8.php:1.94 --- pear/MDB2/package_oci8.php:1.93 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_oci8.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + note: - please use the latest ext/oci8 version from pecl.php.net/oci8 (binaries are available from snaps.php.net and pecl4win.php.net) http://cvs.php.net/viewvc.cgi/pear/MDB2/package_pgsql.php?r1=1.92&r2=1.93&diff_format=u Index: pear/MDB2/package_pgsql.php diff -u pear/MDB2/package_pgsql.php:1.92 pear/MDB2/package_pgsql.php:1.93 --- pear/MDB2/package_pgsql.php:1.92 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_pgsql.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + open todo items: - enable pg_execute() once issues with bytea column are resolved - use pg_result_error_field() to handle localized error messages (Request #7059) http://cvs.php.net/viewvc.cgi/pear/MDB2/package_sqlite.php?r1=1.75&r2=1.76&diff_format=u Index: pear/MDB2/package_sqlite.php diff -u pear/MDB2/package_sqlite.php:1.75 pear/MDB2/package_sqlite.php:1.76 --- pear/MDB2/package_sqlite.php:1.75 Fri Nov 3 13:18:12 2006 +++ pear/MDB2/package_sqlite.php Thu Nov 16 09:36:16 2006 @@ -6,6 +6,8 @@ $version = 'YYY'; $state = 'stable'; $notes = <<<EOT +- propagate errors in getTableFieldDefinition() in the Reverse module + note: open todo items: - fix pattern escaping using GLOB instead of LIKE or create an register own implementation of LIKE