1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Some mistakes fixed

libmysql/libmysql.c:
  was removed by mistake during merging
libmysqld/Makefile.am:
  link should be removed first
libmysqld/libmysqld.c:
  We don't need this line here
sql-common/pack.c:
  Function was moved to old place
sql/sql_client.cc:
  we do need this function
This commit is contained in:
unknown
2003-07-14 16:38:51 +05:00
parent caeb95a3ab
commit 90091dee46
5 changed files with 21 additions and 21 deletions

View File

@ -60,6 +60,12 @@
#include <sql_common.h>
#include "client_settings.h"
ulong net_buffer_length=8192;
ulong max_allowed_packet= 1024L*1024L*1024L;
ulong net_read_timeout= NET_READ_TIMEOUT;
ulong net_write_timeout= NET_WRITE_TIMEOUT;
#ifdef EMBEDDED_LIBRARY
#undef net_flush
my_bool net_flush(NET *net);
@ -150,6 +156,7 @@ void STDCALL mysql_server_end()
else
mysql_thread_end();
}
#endif /*EMBEDDED_LIBRARY*/
my_bool STDCALL mysql_thread_init()
@ -1225,6 +1232,19 @@ uint STDCALL mysql_thread_safe(void)
Some support functions
****************************************************************************/
/*
Functions called my my_net_init() to set some application specific variables
*/
void my_net_local_init(NET *net)
{
net->max_packet= (uint) net_buffer_length;
net->read_timeout= (uint) net_read_timeout;
net->write_timeout=(uint) net_write_timeout;
net->retry_count= 1;
net->max_packet_size= max(net_buffer_length, max_allowed_packet);
}
/*
Add escape characters to a string (blob?) to make it suitable for a insert
to should at least have place for length*2+1 chars