php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #44454
Patch fix-mysql_statement.c-5.3-201101041530.patch revision 2011-01-04 16:20 UTC by rgagnon24 at gmail dot com
Patch fix-mysql_statement.c-5.2.13.patch revision 2010-06-03 18:51 UTC by rgagnon24 at gmail dot com

Patch fix-mysql_statement.c-5.3-201101041530.patch for PDO related Bug #44454

Patch version 2011-01-04 16:20 UTC

Return to Bug #44454 | Download this patch
Patch Revisions:

Developer: rgagnon24@gmail.com

--- ext/pdo_mysql/mysql_statement-201101041530.c	2011-01-04 16:17:16.000000000 +0000
+++ ext/pdo_mysql/mysql_statement.c	2011-01-04 16:17:49.000000000 +0000
@@ -657,7 +657,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt
 #endif /* PDO_USE_MYSQLND */
 
 	if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {
-		if (mysql_errno(S->H->server)) {
+		if (!S->H->buffered && mysql_errno(S->H->server)) {
 			pdo_mysql_error_stmt(stmt);
 		}
 		PDO_DBG_RETURN(0);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 09:01:32 2024 UTC