cvs: pear /MDB2 package_mysql.php package_mysqli.php /MDB2/MDB2/Driver mysql.php mysqli.php
| From: | Lorenzo Alberton | Date: | Sun, 29 Mar 2009 17:04:05 +0000 |
| Subject: | cvs: pear /MDB2 package_mysql.php package_mysqli.php /MDB2/MDB2/Driver mysql.php mysqli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-55871@lists.php.net to get a copy of this message | ||
quipo Sun Mar 29 17:04:05 2009 UTC
Modified files:
/pear/MDB2/MDB2/Driver mysql.php mysqli.php
/pear/MDB2 package_mysql.php package_mysqli.php
Log:
- fixed bug #16003: incorrect check for error after mysqli_store_result
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.216&r2=1.217&diff_format=u
Index: pear/MDB2/MDB2/Driver/mysql.php
diff -u pear/MDB2/MDB2/Driver/mysql.php:1.216 pear/MDB2/MDB2/Driver/mysql.php:1.217
--- pear/MDB2/MDB2/Driver/mysql.php:1.216 Thu Feb 26 23:29:45 2009
+++ pear/MDB2/MDB2/Driver/mysql.php Sun Mar 29 17:04:05 2009
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.216 2009/02/26 23:29:45 davidc Exp $
+// $Id: mysql.php,v 1.217 2009/03/29 17:04:05 quipo Exp $
//
/**
@@ -793,7 +793,7 @@
$function = $this->options['result_buffering']
? 'mysql_query' : 'mysql_unbuffered_query';
$result = @$function($query, $connection);
- if (!$result) {
+ if (!$result && 0 !== mysql_errno($connection)) {
$err =& $this->raiseError(null, null, null,
'Could not execute statement', __FUNCTION__);
return $err;
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.192&r2=1.193&diff_format=u
Index: pear/MDB2/MDB2/Driver/mysqli.php
diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.192 pear/MDB2/MDB2/Driver/mysqli.php:1.193
--- pear/MDB2/MDB2/Driver/mysqli.php:1.192 Sun Nov 16 21:45:08 2008
+++ pear/MDB2/MDB2/Driver/mysqli.php Sun Mar 29 17:04:05 2009
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysqli.php,v 1.192 2008/11/16 21:45:08 quipo Exp $
+// $Id: mysqli.php,v 1.193 2009/03/29 17:04:05 quipo Exp $
//
/**
@@ -776,7 +776,7 @@
$result = mysqli_query($connection, $query);
}
- if (!$result) {
+ if (!$result && 0 !== mysqli_errno($connection)) {
$err =& $this->raiseError(null, null, null,
'Could not execute statement', __FUNCTION__);
return $err;
http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.160&r2=1.161&diff_format=u
Index: pear/MDB2/package_mysql.php
diff -u pear/MDB2/package_mysql.php:1.160 pear/MDB2/package_mysql.php:1.161
--- pear/MDB2/package_mysql.php:1.160 Fri Jan 16 09:48:03 2009
+++ pear/MDB2/package_mysql.php Sun Mar 29 17:04:05 2009
@@ -7,6 +7,7 @@
$state = 'beta';
$notes = <<<EOT
- fixed bug #15650: mysqli function used in setCharset()
+- fixed bug #16003: incorrect check for error after mysql_store_result
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.162&r2=1.163&diff_format=u
Index: pear/MDB2/package_mysqli.php
diff -u pear/MDB2/package_mysqli.php:1.162 pear/MDB2/package_mysqli.php:1.163
--- pear/MDB2/package_mysqli.php:1.162 Wed Jan 14 17:57:33 2009
+++ pear/MDB2/package_mysqli.php Sun Mar 29 17:04:05 2009
@@ -6,6 +6,7 @@
$version = 'XXX';
$state = 'beta';
$notes = <<<EOT
+- fixed bug #16003: incorrect check for error after mysqli_store_result
open todo items:
- use a trigger to emulate setting default now()