summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_libmysql.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-09-05 15:29:45 +0000
committerAndrey Hristov <andrey@php.net>2011-09-05 15:29:45 +0000
commit13c5106f430ce960a3742468cd43b81a873ecf8a (patch)
treee8ab31c93cb9588caf3a9f5111b9697b056405b1 /ext/mysqli/mysqli_libmysql.h
parent491df983869097bebf0e9d93ac1f90772b3c8f4e (diff)
downloadphp-git-13c5106f430ce960a3742468cd43b81a873ecf8a.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_libmysql.h b/ext/mysqli/mysqli_libmysql.h
index 9fdfd7eb2a..70202c0d00 100644
--- a/ext/mysqli/mysqli_libmysql.h
+++ b/ext/mysqli/mysqli_libmysql.h
@@ -30,6 +30,7 @@
#define MYSQLND_OPT_INT_AND_YEAR_AS_INT 201
#define mysqli_result_is_unbuffered(r) ((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT)
+#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)