iliaa Sun Apr 15 16:50:42 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/ext/pdo_mysql mysql_statement.c
Log:
Fixed bug #40935 (pdo_mysql does not raise an exception on empty
fetchAll()).
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.649&r2=1.2027.2.547.2.650&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.649 php-src/NEWS:1.2027.2.547.2.650
--- php-src/NEWS:1.2027.2.547.2.649 Sat Apr 14 17:39:13 2007
+++ php-src/NEWS Sun Apr 15 16:50:41 2007
@@ -10,6 +10,8 @@
(Johannes)
- Fixed bug #41034 (json_encode() ignores null byte started keys in arrays).
(Ilia)
+- Fixed bug #40935 (pdo_mysql does not raise an exception on empty
+ fetchAll()). (Ilia)
- Fixed bug #40861 (strtotime() doesn't handle double negative relative time
units correctly). (Derick)
- Fixed bug #40290 (strtotime() returns unexpected result with particular
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.48.2.14.2.4&r2=1.48.2.14.2.5&diff_format=u
Index: php-src/ext/pdo_mysql/mysql_statement.c
diff -u php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.4
php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.5
--- php-src/ext/pdo_mysql/mysql_statement.c:1.48.2.14.2.4 Sun Apr 8
15:26:21 2007
+++ php-src/ext/pdo_mysql/mysql_statement.c Sun Apr 15 16:50:42 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql_statement.c,v 1.48.2.14.2.4 2007/04/08 15:26:21 iliaa Exp $ */
+/* $Id: mysql_statement.c,v 1.48.2.14.2.5 2007/04/15 16:50:42 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -413,6 +413,7 @@
#endif
if (!S->result) {
+ strcpy(stmt->error_code, "HY000");
return 0;
}
if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php