~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Brian Aker
  • Date: 2008-08-05 04:10:42 UTC
  • mfrom: (261.2.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: brian@tangent.org-20080805041042-1l4893r3bwy2lxz2
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
class MYSQL_ERROR: public Sql_alloc
 
16
class DRIZZLE_ERROR: public Sql_alloc
17
17
{
18
18
public:
19
19
  enum enum_warning_level
23
23
  enum_warning_level level;
24
24
  char *msg;
25
25
  
26
 
  MYSQL_ERROR(THD *thd, uint code_arg, enum_warning_level level_arg,
 
26
  DRIZZLE_ERROR(THD *thd, uint code_arg, enum_warning_level level_arg,
27
27
              const char *msg_arg)
28
28
    :code(code_arg), level(level_arg)
29
29
  {
33
33
  void set_msg(THD *thd, const char *msg_arg);
34
34
};
35
35
 
36
 
MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
 
36
DRIZZLE_ERROR *push_warning(THD *thd, DRIZZLE_ERROR::enum_warning_level level,
37
37
                          uint code, const char *msg);
38
 
void push_warning_printf(THD *thd, MYSQL_ERROR::enum_warning_level level,
 
38
void push_warning_printf(THD *thd, DRIZZLE_ERROR::enum_warning_level level,
39
39
                         uint code, const char *format, ...);
40
 
void mysql_reset_errors(THD *thd, bool force);
 
40
void drizzle_reset_errors(THD *thd, bool force);
41
41
bool mysqld_show_warnings(THD *thd, ulong levels_to_show);
42
42
 
43
43
extern const LEX_STRING warning_level_names[];