diff options
author | unknown <joerg@trift2.> | 2008-03-14 14:41:08 +0100 |
---|---|---|
committer | unknown <joerg@trift2.> | 2008-03-14 14:41:08 +0100 |
commit | 532da5ebc7e079f7961d5060e48d65bca7b3238d (patch) | |
tree | 746b5fc46e851c97ebe023c635c68b475addab48 /libmysqld | |
parent | 4baa2eb8feb417db0d3975e4930e51a6f7169e8c (diff) | |
parent | 269ebe54211cf96c4e64fa7268a1414588ca1de8 (diff) | |
download | mariadb-git-532da5ebc7e079f7961d5060e48d65bca7b3238d.tar.gz |
Merge trift2.:/MySQL/M51/mysql-5.1
into trift2.:/MySQL/M51/push-5.1
client/mysqldump.c:
Auto merged
configure.in:
Auto merged
include/my_global.h:
Auto merged
scripts/mysql_config.sh:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/unireg.h:
Auto merged
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; +} |