mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix for bug #62820
This commit is contained in:
parent
38b632dd7c
commit
0737be7e7b
1 changed files with 62 additions and 49 deletions
|
@ -413,7 +413,19 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
|
|||
}
|
||||
|
||||
ret = mysql_next_result(H->server);
|
||||
|
||||
#if PDO_USE_MYSQLND
|
||||
/* for whatever reason mysqlnd breaks with libmysql compatibility at the C level, no -1 */
|
||||
if (PASS != ret) {
|
||||
pdo_mysql_error_stmt(stmt);
|
||||
PDO_DBG_RETURN(0);
|
||||
}
|
||||
if (mysql_more_results(H->server)) {
|
||||
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt TSRMLS_CC));
|
||||
} else {
|
||||
/* No more results */
|
||||
PDO_DBG_RETURN(0);
|
||||
}
|
||||
#else
|
||||
if (ret > 0) {
|
||||
pdo_mysql_error_stmt(stmt);
|
||||
PDO_DBG_RETURN(0);
|
||||
|
@ -423,6 +435,7 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
|
|||
} else {
|
||||
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt TSRMLS_CC));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue