1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge mysql.com:/home/hf/work/25097/my50-25097

into  mysql.com:/home/hf/work/25097/my51-25097
This commit is contained in:
holyfoot/hf@hfmain.(none)
2008-02-27 13:00:59 +04:00
6 changed files with 35 additions and 17 deletions

View File

@ -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;
}