summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-05-26 21:40:27 +0500
committerunknown <hf@deer.(none)>2004-05-26 21:40:27 +0500
commit8fd378d65a60907b3f4c1c4e52611d9157f4a2ea (patch)
treeda6efb78f98da49c9e60050f45067be7a2860d8a /libmysql/libmysql.c
parent64fee753f698911b9a23a77008d45aa2d25caa31 (diff)
downloadmariadb-git-8fd378d65a60907b3f4c1c4e52611d9157f4a2ea.tar.gz
Fix to make Windows compilation smoother
VC++Files/innobase/innobase.dsp: non-existent file removed client/mysql.cc: local opt_max_allowed_packet and opt_net_buffer_length introduced client/mysqldump.c: local opt_max_allowed_packet and opt_net_buffer_length introduced include/mysql.h: mysql_get_parameters() interface added #define max_allowed_packet added include/mysql_com.h: these should not be exported libmysql/libmysql.c: mysql_get_parameters implementations libmysql/libmysql.def: interface changed libmysql_r/Makefile.am: MYSQL_CLIENT define added libmysqld/lib_sql.cc: line moved to be above the '#include "mysql.cc"' libmysqld/libmysqld.c: mysql_get_parameters implementation (embedded) libmysqld/libmysqld.def: interface changed sql/log_event.cc: should be like that in this case tools/mysqlmanager.c: compiler warns on this line
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index dba9c83b339..0a23954ae67 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -121,6 +121,14 @@ void STDCALL mysql_server_end()
mysql_client_init= org_my_init_done= 0;
}
+static MYSQL_PARAMETERS mysql_internal_parameters=
+{&max_allowed_packet, &net_buffer_length};
+
+MYSQL_PARAMETERS *STDCALL mysql_get_parameters()
+{
+ return &mysql_internal_parameters;
+}
+
my_bool STDCALL mysql_thread_init()
{
#ifdef THREAD