diff options
author | kaa@kaamos.(none) <> | 2008-03-12 11:19:46 +0300 |
---|---|---|
committer | kaa@kaamos.(none) <> | 2008-03-12 11:19:46 +0300 |
commit | 0a7052e4d3633b818ab4050adcad646b888c5430 (patch) | |
tree | f84e4ada799bf37a3d9ef074064f8a17f408aa89 /libmysqld | |
parent | d4025ce1a60322635bf5f7adb765f4612563ee3a (diff) | |
parent | 7e365efa30f5d42aaf87ce9044176e266ee337eb (diff) | |
download | mariadb-git-0a7052e4d3633b818ab4050adcad646b888c5430.tar.gz |
Merge kaamos.(none):/data/src/mysql-5.1
into kaamos.(none):/data/src/opt/mysql-5.1-opt
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index ae16a63a463..ec9356ce98d 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -38,6 +38,8 @@ C_MODE_START #include <sql_common.h> #include "embedded_priv.h" +extern unsigned int mysql_server_last_errno; +extern char mysql_server_last_error[MYSQL_ERRMSG_SIZE]; static my_bool emb_read_query_result(MYSQL *mysql); @@ -1122,3 +1124,12 @@ bool Protocol::net_store_data(const uchar *from, size_t length) return FALSE; } + +int vprint_msg_to_log(enum loglevel level __attribute__((unused)), + const char *format, va_list argsi) +{ + vsnprintf(mysql_server_last_error, sizeof(mysql_server_last_error), + format, argsi); + mysql_server_last_errno= CR_UNKNOWN_ERROR; + return 0; +} |