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_mysqlnd.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_mysqlnd.h')
-rw-r--r-- | ext/mysqli/mysqli_mysqlnd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_mysqlnd.h b/ext/mysqli/mysqli_mysqlnd.h index e4e06daeaa..de10bb83ca 100644 --- a/ext/mysqli/mysqli_mysqlnd.h +++ b/ext/mysqli/mysqli_mysqlnd.h @@ -31,6 +31,7 @@ #define MYSQLI_CLOSE_DISCONNECTED MYSQLND_CLOSE_DISCONNECTED #define mysqli_result_is_unbuffered(r) ((r)->unbuf) +#define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) ((r)->unbuf && !(r)->unbuf->eof_reached) #define mysqli_server_status(c) (c)->upsert_status.server_status #define mysqli_stmt_get_id(s) ((s)->data->stmt_id) #define mysqli_stmt_warning_count(s) mysqlnd_stmt_warning_count((s)) |