diff options
author | unknown <holyfoot/hf@hfmain.(none)> | 2008-02-27 13:00:59 +0400 |
---|---|---|
committer | unknown <holyfoot/hf@hfmain.(none)> | 2008-02-27 13:00:59 +0400 |
commit | 33c4301922112658131e094b3b6b5912c236e90d (patch) | |
tree | a3eef8d4ff9d07ed0b848f3d59a308366a952f5c /libmysqld | |
parent | 78e19d4283572f1706738980b8242a5e65619caf (diff) | |
parent | a4b0a2cf67356c0f8f80b5291b3c1f4f8327cb97 (diff) | |
download | mariadb-git-33c4301922112658131e094b3b6b5912c236e90d.tar.gz |
Merge mysql.com:/home/hf/work/25097/my50-25097
into mysql.com:/home/hf/work/25097/my51-25097
client/mysql.cc:
Auto merged
include/sql_common.h:
Auto merged
libmysql/libmysql.c:
Auto merged
libmysqld/lib_sql.cc:
Auto merged
sql-common/client.c:
merging
sql/log.cc:
merging
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index b467345b5d5..bef51a33d75 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); @@ -1115,3 +1117,11 @@ bool Protocol::net_store_data(const uchar *from, size_t length) return FALSE; } + +void 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; +} |