mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Cleanups
Don't use DBUG library for struct st_my_thread_var to make code less complicated. Docs/manual.texi: Cleanup acinclude.m4: Search after openssl in /usr/local client/mysql.cc: Fix prompt client/mysqladmin.c: Cleanup client/mysqltest.c: Cleanup include/my_pthread.h: Move thread variables to the right location include/my_sys.h: Move thread variables to the right location include/mysql.h: Clean up client prototypes libmysql/libmysql.c: Clean up client prototypes mysys/my_static.h: Cleanup mysys/my_thr_init.c: Don't use DBUG library for struct st_my_thread_var to make code less complicated sql/item_cmpfunc.cc: Small optimization sql/net_pkg.cc: Cleanup sql/sql_parse.cc: Allow VARCHAR(0)
This commit is contained in:
@@ -108,10 +108,12 @@ net_printf(NET *net, uint errcode, ...)
|
||||
thd->query_error = 1; // if we are here, something is wrong :-)
|
||||
query_cache_abort(net); // Safety
|
||||
va_start(args,errcode);
|
||||
// Sasha: this is needed to make net_printf() work with 0 argument for
|
||||
// errorcode and use the argument after that as the format string. This
|
||||
// is usefull for rare errors that are not worth the hassle to put in
|
||||
// errmsg.sys, but at the same time, the message is not fixed text
|
||||
/*
|
||||
The following is needed to make net_printf() work with 0 argument for
|
||||
errorcode and use the argument after that as the format string. This
|
||||
is useful for rare errors that are not worth the hassle to put in
|
||||
errmsg.sys, but at the same time, the message is not fixed text
|
||||
*/
|
||||
format=errcode ? ER(errcode) : va_arg(args,char*);
|
||||
offset= net->return_errno ? 2 : 0;
|
||||
text_pos=(char*) net->buff+head_length+offset+1;
|
||||
|
Reference in New Issue
Block a user