27
27
enum_warning_level level;
30
DRIZZLE_ERROR(Session *thd, uint32_t code_arg, enum_warning_level level_arg,
30
DRIZZLE_ERROR(Session *session, uint32_t code_arg, enum_warning_level level_arg,
31
31
const char *msg_arg)
32
32
:code(code_arg), level(level_arg)
35
set_msg(thd, msg_arg);
35
set_msg(session, msg_arg);
37
void set_msg(Session *thd, const char *msg_arg);
37
void set_msg(Session *session, const char *msg_arg);
40
DRIZZLE_ERROR *push_warning(Session *thd, DRIZZLE_ERROR::enum_warning_level level,
40
DRIZZLE_ERROR *push_warning(Session *session, DRIZZLE_ERROR::enum_warning_level level,
41
41
uint32_t code, const char *msg);
42
void push_warning_printf(Session *thd, DRIZZLE_ERROR::enum_warning_level level,
42
void push_warning_printf(Session *session, DRIZZLE_ERROR::enum_warning_level level,
43
43
uint32_t code, const char *format, ...);
44
void drizzle_reset_errors(Session *thd, bool force);
45
bool mysqld_show_warnings(Session *thd, uint32_t levels_to_show);
44
void drizzle_reset_errors(Session *session, bool force);
45
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show);
47
47
extern const LEX_STRING warning_level_names[];