summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_libmysql_compat.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-01-28 18:25:50 +0000
committerAndrey Hristov <andrey@php.net>2008-01-28 18:25:50 +0000
commit7932ccba6d4e71bf50bba9797134a047d36e10e1 (patch)
tree703adc6e5e0fea41ffb536a1ac50def65fbdae19 /ext/mysqlnd/mysqlnd_libmysql_compat.h
parenta7dabd575a1e852999ed9a64341e07737f48ec81 (diff)
downloadphp-git-7932ccba6d4e71bf50bba9797134a047d36e10e1.tar.gz
More optimizations - less MM calls
Clearly separated fetching (physical reading) from decoding phases (data interpretation). Threaded fetching added but disabled as needs more work for Windows. For Linux needs some touches to add pthreads if this is enabled, probably with a compile-time switch. The code reorganisation makes it easy to add also async API, similar to cURL's one.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_libmysql_compat.h')
-rw-r--r--ext/mysqlnd/mysqlnd_libmysql_compat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_libmysql_compat.h b/ext/mysqlnd/mysqlnd_libmysql_compat.h
index 546bd12693..533a3bcd65 100644
--- a/ext/mysqlnd/mysqlnd_libmysql_compat.h
+++ b/ext/mysqlnd/mysqlnd_libmysql_compat.h
@@ -108,6 +108,7 @@
#define mysql_free_result(r) mysqlnd_free_result((r), FALSE)
#define mysql_store_result(r) mysqlnd_store_result((r))
#define mysql_use_result(r) mysqlnd_use_result((r))
+#define mysql_async_store_result(r) mysqlnd_async_store_result((r))
#define mysql_thread_id(r) mysqlnd_thread_id((r))
#define mysql_get_client_info() mysqlnd_get_client_info()
#define mysql_get_client_version() mysqlnd_get_client_version()
@@ -116,6 +117,6 @@
#define mysql_get_server_info(r) mysqlnd_get_server_info((r))
#define mysql_get_server_version(r) mysqlnd_get_server_version((r))
#define mysql_warning_count(r) mysqlnd_warning_count((r))
-#define mysql_eof(r) (((r)->unbuf && (r)->unbuf->eof_reached) || (r)->data)
+#define mysql_eof(r) (((r)->unbuf && (r)->unbuf->eof_reached) || (r)->stored_data)
#endif /* MYSQLND_LIBMYSQL_COMPAT_H */