mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
PDO MySQL: Handle error during closeCursor()
This commit is contained in:
parent
71b5f1446e
commit
23193e89e4
2 changed files with 32 additions and 1 deletions
|
@ -899,7 +899,8 @@ static int pdo_mysql_stmt_cursor_closer(pdo_stmt_t *stmt) /* {{{ */
|
|||
while (mysql_more_results(S->H->server)) {
|
||||
MYSQL_RES *res;
|
||||
if (mysql_next_result(S->H->server) != 0) {
|
||||
break;
|
||||
pdo_mysql_error_stmt(stmt);
|
||||
PDO_DBG_RETURN(0);
|
||||
}
|
||||
res = mysql_store_result(S->H->server);
|
||||
if (res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue