~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  enum_warning_level level;
28
28
  char *msg;
29
29
  
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)
33
33
  {
34
34
    if (msg_arg)
35
 
      set_msg(thd, msg_arg);
 
35
      set_msg(session, msg_arg);
36
36
  }
37
 
  void set_msg(Session *thd, const char *msg_arg);
 
37
  void set_msg(Session *session, const char *msg_arg);
38
38
};
39
39
 
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);
46
46
 
47
47
extern const LEX_STRING warning_level_names[];