cvs: pear /DB package.xml /DB/DB ibase.php /DB/tests/driver 08affectedrows.phpt
| From: | Adam Harvey | Date: | Thu, 26 Mar 2009 07:16:31 +0000 |
| Subject: | cvs: pear /DB package.xml /DB/DB ibase.php /DB/tests/driver 08affectedrows.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-55855@lists.php.net to get a copy of this message | ||
aharvey Thu Mar 26 07:16:31 2009 UTC
Modified files:
/pear/DB package.xml
/pear/DB/tests/driver 08affectedrows.phpt
/pear/DB/DB ibase.php
Log:
Firebird-related fixes: skipping a test case that doesn't apply to PHP 4 and changing the
order error messages are regexed to provide a more specific error message in PHP 4 when a constraint
violation occurs. Also updated package.xml to start working towards 1.7.14RC2. (Now only about 75
weeks late!)
http://cvs.php.net/viewvc.cgi/pear/DB/package.xml?r1=1.241&r2=1.242&diff_format=u
Index: pear/DB/package.xml
diff -u pear/DB/package.xml:1.241 pear/DB/package.xml:1.242
--- pear/DB/package.xml:1.241 Wed Nov 28 02:22:39 2007
+++ pear/DB/package.xml Thu Mar 26 07:16:31 2009
@@ -65,10 +65,10 @@
<email>cox@idecnet.com</email>
<active>yes</active>
</developer>
- <date>2007-11-28</date>
+ <date>pending</date>
<version>
- <release>1.7.14RC1</release>
- <api>1.7.14RC1</api>
+ <release>1.7.14RC2</release>
+ <api>1.7.14RC2</api>
</version>
<stability>
<release>beta</release>
@@ -76,7 +76,15 @@
</stability>
<license uri="http://www.php.net/license">PHP
License</license>
<notes>
-This release candidate of DB fixes a number of minor issues reported since the release of DB
1.7.13. Note that this release has not yet been tested for databases other than MySQL, PostgreSQL
and SQLite; however I've decided to put it out as a release candidate now as I won't be
able to test the other database drivers until next week.
+This long, long overdue release candidate of DB fixes a number of minor issues reported since the
release of DB 1.7.13 along with some issues in DB 1.7.14RC1 that have been exposed by a more
comprehensive testing platform than was previously available.
+
+Changes since 1.7.14RC1:
+
+ibase:
+* Changed the order of regular expressions applied when mapping errors so that constraint
violations in PHP 4.4 are actually reported as constraint violations and not table not found errors.
+* Fixed a test that should have been skipped in PHP 4.4.
+
+Changes since 1.7.13:
All drivers:
* Made the definition of DB_common::raiseError() compatible with PEAR::raiseError() by adding dummy
parameters. Request 11581.
http://cvs.php.net/viewvc.cgi/pear/DB/tests/driver/08affectedrows.phpt?r1=1.9&r2=1.10&diff_format=u
Index: pear/DB/tests/driver/08affectedrows.phpt
diff -u pear/DB/tests/driver/08affectedrows.phpt:1.9 pear/DB/tests/driver/08affectedrows.phpt:1.10
--- pear/DB/tests/driver/08affectedrows.phpt:1.9 Mon Nov 1 05:35:31 2004
+++ pear/DB/tests/driver/08affectedrows.phpt Thu Mar 26 07:16:31 2009
@@ -3,7 +3,14 @@
--INI--
error_reporting = 2047
--SKIPIF--
-<?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
+<?php
+chdir(dirname(__FILE__)); require_once './skipif.inc';
+
+// ibase_query on PHP 4 doesn't support affected rows.
+if ($dbh->phptype == 'ibase' && version_compare(PHP_VERSION,
'5.0.0', '<')) {
+ die('skip ibase doesn\'t return affected rows from ibase_query in PHP 4');
+}
+?>
--FILE--
<?php
require_once './mktable.inc';
http://cvs.php.net/viewvc.cgi/pear/DB/DB/ibase.php?r1=1.116&r2=1.117&diff_format=u
Index: pear/DB/DB/ibase.php
diff -u pear/DB/DB/ibase.php:1.116 pear/DB/DB/ibase.php:1.117
--- pear/DB/DB/ibase.php:1.116 Fri Sep 21 13:40:41 2007
+++ pear/DB/DB/ibase.php Thu Mar 26 07:16:31 2009
@@ -23,7 +23,7 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright 1997-2007 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: ibase.php,v 1.116 2007/09/21 13:40:41 aharvey Exp $
+ * @version CVS: $Id: ibase.php,v 1.117 2009/03/26 07:16:31 aharvey Exp $
* @link http://pear.php.net/package/DB
*/
@@ -916,6 +916,8 @@
$error_regexps = array(
'/generator .* is not defined/'
=> DB_ERROR_SYNTAX, // for compat. w ibase_errcode()
+ '/violation of [\w ]+ constraint/i'
+ => DB_ERROR_CONSTRAINT,
'/table.*(not exist|not found|unknown)/i'
=> DB_ERROR_NOSUCHTABLE,
'/table .* already exists/i'
@@ -926,8 +928,6 @@
=> DB_ERROR_NOT_FOUND,
'/validation error for column .* value "\*\*\* null/i'
=> DB_ERROR_CONSTRAINT_NOT_NULL,
- '/violation of [\w ]+ constraint/i'
- => DB_ERROR_CONSTRAINT,
'/conversion error from string/i'
=> DB_ERROR_INVALID_NUMBER,
'/no permission for/i'