diff options
author | unknown <hf@deer.(none)> | 2003-09-18 18:28:42 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-09-18 18:28:42 +0500 |
commit | 88fcf2a9433f60eddda31504ba14dfe87b375d2c (patch) | |
tree | 593ba69d5c29894f275cbfb3fd65924fcde6fef3 /client/mysqltest.c | |
parent | cbc431dbdfcd9a99e5c74d88cb0ac0b2ae65f918 (diff) | |
download | mariadb-git-88fcf2a9433f60eddda31504ba14dfe87b375d2c.tar.gz |
SCRUM:
embedded library
I decided to get rid of #define mysql_some_function in mysql.h
It puzzles users and makes problems with dynamic libraries
Finally, there are only two functions left, that are covered with
the #define-s and it won't hurt performance at all
client/mysqltest.c:
that'll be faster
include/mysql.h:
#defines changed to functions
libmysql/libmysql.c:
that'll be faster that calls of wrapper functions
libmysqld/libmysqld.c:
skip wrapper function
sql-common/client.c:
skip wrapper function
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 92ed47221bd..04278bce834 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -2178,7 +2178,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags) if (!(flags & QUERY_REAP)) DBUG_RETURN(0); - if (mysql_read_query_result(mysql) || + if ((*mysql->methods->read_query_result)(mysql) || (!(last_result = res = mysql_store_result(mysql)) && mysql_field_count(mysql))) { |