diff options
author | unknown <monty@mysql.com> | 2004-05-27 00:30:28 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-05-27 00:30:28 +0300 |
commit | 7c5cd4125dfe7b6891aeffc567387573695714c3 (patch) | |
tree | 5ed4e118d371f2a1d84eaaef85c5869d24977363 /include/mysql.h | |
parent | 5fe72df8fd23a5b5f6938a9e559e916594b78449 (diff) | |
parent | cc24ac7079827af1290a87ca0d5ce817329a9f6b (diff) | |
download | mariadb-git-7c5cd4125dfe7b6891aeffc567387573695714c3.tar.gz |
merge with 4.0 to get windows fixes
VC++Files/client/mysqlclient.dsp:
Auto merged
VC++Files/innobase/innobase.dsp:
Auto merged
include/mysql.h:
Auto merged
include/mysql_com.h:
Auto merged
innobase/include/log0log.h:
Auto merged
innobase/include/log0log.ic:
Auto merged
innobase/include/mtr0mtr.h:
Auto merged
innobase/log/log0log.c:
Auto merged
innobase/log/log0recv.c:
Auto merged
innobase/que/que0que.c:
Auto merged
libmysql/libmysql.c:
Auto merged
libmysql_r/Makefile.am:
Auto merged
sql/log_event.cc:
Auto merged
sql/mysqld.cc:
Auto merged
tools/mysqlmanager.c:
Auto merged
Diffstat (limited to 'include/mysql.h')
-rw-r--r-- | include/mysql.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h index 51540a7d89f..ad85bcc1bbd 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -317,6 +317,17 @@ typedef struct st_mysql_manager char last_error[MAX_MYSQL_MANAGER_ERR]; } MYSQL_MANAGER; +typedef struct st_mysql_parameters +{ + unsigned long *p_max_allowed_packet; + unsigned long *p_net_buffer_length; +} MYSQL_PARAMETERS; + +#if !defined(MYSQL_CLIENT) && !defined(MYSQL_SERVER) && !defined(EMBEDDED_LIBRARY) +#define max_allowed_packet (*mysql_get_parameters()->p_max_allowed_packet) +#define net_buffer_length (*mysql_get_parameters()->p_net_buffer_length) +#endif + /* Set up and bring down the server; to ensure that applications will work when linked against either the standard client library or the @@ -325,6 +336,8 @@ typedef struct st_mysql_manager int STDCALL mysql_server_init(int argc, char **argv, char **groups); void STDCALL mysql_server_end(void); +MYSQL_PARAMETERS *STDCALL mysql_get_parameters(); + /* Set up and bring down a thread; these function should be called for each thread in an application which opens at least one MySQL |