Patch 0001-bugfix-check-errors-returned-from-mysqlnd_stmt_next_.patch for PDO MySQL Bug #63185
Patch version 2012-10-25 10:56 UTC
Return to Bug #63185 |
Download this patch
Patch Revisions:
Developer: dexen.devries@gmail.com
From 7e033a496359492704c28e99ad88db9a7a5d78a1 Mon Sep 17 00:00:00 2001
From: dexen deVries <dexen.devries@gmail.com>
Date: Thu, 25 Oct 2012 12:47:46 +0200
Subject: [PATCH] bugfix: check errors returned from
mysqlnd_stmt_next_result()
X-Face: 1TH%]0KlR_DQ/V9+m_"neC|Yj3$MU@B/vVI\}^j`G/[9JKe=5`p[$l|z^\MRO%<k:9xXL[_!jEZo8$[]yo{7O-]t_@Qj`v5H@L[YyU<#j7(H)P\{pMs))9$@Vww1"ni-{+{5olk=XY&G,}|UHQMC08506\0=+p|75ucH!S!1UcXoC1vgpN_{lOMt_54_N5;)ngh6=D^uZN,}ZI9-k9"v<!}`jpCUMM,//`>H6w{K<geM^bS]jwD8'lAEX9>F[ScIHig1.r%65;
when using mysqlnd and with PDO::ATTR_EMULATE_PREPARES == false
errors from 2nd and subsequent result sets were silently ignored
fixes at least #63185
---
ext/pdo_mysql/mysql_statement.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index fc5ec51..58a8c05 100755
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -353,6 +353,7 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
PDO_DBG_RETURN(0);
}
if (mysqlnd_stmt_next_result(S->stmt)) {
+ pdo_mysql_error_stmt(S->stmt);
PDO_DBG_RETURN(0);
}
--
1.7.12.1
|