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 | 4325a8bffcf6768297a8fa186bbace4f879ba951 (patch) | |
tree | ce9c45b51014b7809ac37aabe97178b7bc21d330 /ext/mysqli/mysqli_libmysql.h | |
parent | 67872cf7a90828e9424c2cca7271715e6c710339 (diff) | |
download | php-git-4325a8bffcf6768297a8fa186bbace4f879ba951.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) |