diff options
author | unknown <hf@deer.(none)> | 2003-07-21 16:19:00 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-07-21 16:19:00 +0500 |
commit | 53f4626105137f8c3cdb83e911f39f67116e0bfa (patch) | |
tree | 0a9933ffbc34919b854f0c78ce1d422697303f42 /include/mysql.h | |
parent | 127ff28c89d70a1cb61b08d94a399c3ea1e0c3fa (diff) | |
download | mariadb-git-53f4626105137f8c3cdb83e911f39f67116e0bfa.tar.gz |
Another fix for "client code in embedded library"
include/mysql.h:
mysql_close isn't virtual nown
Diffstat (limited to 'include/mysql.h')
-rw-r--r-- | include/mysql.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mysql.h b/include/mysql.h index e4e449efce9..58391d615d2 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -537,14 +537,12 @@ typedef struct st_mysql_stmt } MYSQL_STMT; -#define mysql_close(sock) (*(sock)->methods->close)(sock) #define mysql_read_query_result(mysql) (*(mysql)->methods->read_query_result)(mysql) #define mysql_store_result(mysql) (*(mysql)->methods->store_result)(mysql) #define mysql_use_result(mysql) (*(mysql)->methods->use_result)(mysql) typedef struct st_mysql_methods { - void STDCALL (*close)(MYSQL *sock); my_bool STDCALL (*read_query_result)(MYSQL *mysql); my_bool STDCALL (*advanced_command)(MYSQL *mysql, enum enum_server_command command, @@ -590,6 +588,8 @@ MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_seek(MYSQL_STMT *stmt, MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt); void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong offset); my_ulonglong STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt); +void STDCALL mysql_close(MYSQL *sock); + /* status return codes */ #define MYSQL_NO_DATA 100 |