diff options
author | Andrey Hristov <andrey@php.net> | 2011-09-05 15:29:45 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-09-05 15:29:45 +0000 |
commit | 5308ed60f3f2ceb60deefe68a3adc846fea6308b (patch) | |
tree | ba4455ffc68ed82fddaa2114328836ae2ae9ae07 /ext/mysqli/mysqli_libmysql.h | |
parent | f2493615590ad33477e9a7804a6a1e89c383ba46 (diff) | |
download | php-git-5308ed60f3f2ceb60deefe68a3adc846fea6308b.tar.gz |
Fix for Bug #55582 mysqli_num_rows() returns always 0 for unbuffered, when mysqlnd is used
Diffstat (limited to 'ext/mysqli/mysqli_libmysql.h')
-rw-r--r-- | ext/mysqli/mysqli_libmysql.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_libmysql.h b/ext/mysqli/mysqli_libmysql.h index 3ec06cdd08..98e18fcfcd 100644 --- a/ext/mysqli/mysqli_libmysql.h +++ b/ext/mysqli/mysqli_libmysql.h @@ -30,6 +30,7 @@ /* r->data should be always NULL, at least in recent libmysql versions, the status changes once data is read*/ #define mysqli_result_is_unbuffered(r) (((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT) || ((r)->data == NULL)) +#define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) (((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT) || ((r)->data == NULL)) #define mysqli_server_status(c) (c)->server_status #define mysqli_stmt_get_id(s) ((s)->stmt_id) #define mysqli_stmt_warning_count(s) mysql_warning_count((s)->mysql) |