1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed bug in warning handling (Memory was allocated from wrong MEM_ROOT)

sql/item_sum.cc:
  Fixed bug in warning handling.
sql/item_sum.h:
  Fixed bug in warning handling.
sql/sql_class.h:
  Fixed bug in warning handling.
sql/sql_error.cc:
  Fixed bug in warning handling.
strings/my_vsnprintf.c:
  After merge fix
This commit is contained in:
unknown
2003-04-03 21:19:14 +03:00
parent c9d2e7759a
commit 0dbfff4614
5 changed files with 40 additions and 27 deletions

View File

@@ -301,17 +301,14 @@ public:
enum_warning_level level;
char *msg;
MYSQL_ERROR(uint code_arg, enum_warning_level level_arg,
MYSQL_ERROR(THD *thd, uint code_arg, enum_warning_level level_arg,
const char *msg_arg)
:code(code_arg), level(level_arg)
{
if (msg_arg)
msg=sql_strdup(msg_arg);
}
inline void set_msg(const char *msg_arg)
{
msg=sql_strdup(msg_arg);
set_msg(thd, msg_arg);
}
void set_msg(THD *thd, const char *msg_arg);
};