1 --- PHP_5_3/ext/pdo_mysql/mysql_statement.c 2011/05/16 15:36:12 311087
2 +++ PHP_5_3/ext/pdo_mysql/mysql_statement.c 2011/05/16 15:37:39 311088
4 #endif /* PDO_USE_MYSQLND */
6 if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {
7 - if (mysql_errno(S->H->server)) {
9 + if (S->result->unbuf && !S->result->unbuf->eof_reached && mysql_errno(S->H->server)) {
11 + if (!S->result->eof && mysql_errno(S->H->server)) {
13 pdo_mysql_error_stmt(stmt);