~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Monty Taylor
  • Date: 2008-11-16 20:15:33 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116201533-d0f19s1bk1h95iyw
Removed a big bank of includes from item.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SQL_ERROR_H
21
21
#define DRIZZLED_SQL_ERROR_H
22
22
 
23
 
#include "drizzled/memory/sql_alloc.h"
24
 
#include "drizzled/lex_string.h"
25
 
 
26
 
#include <bitset>
27
 
 
28
 
namespace drizzled
29
 
{
30
 
 
31
 
class DRIZZLE_ERROR: public memory::SqlAlloc
 
23
class DRIZZLE_ERROR: public Sql_alloc
32
24
{
33
25
public:
34
 
  static const uint32_t NUM_ERRORS= 4;
35
26
  enum enum_warning_level
36
27
  { WARN_LEVEL_NOTE, WARN_LEVEL_WARN, WARN_LEVEL_ERROR, WARN_LEVEL_END};
37
28
 
38
29
  uint32_t code;
39
30
  enum_warning_level level;
40
31
  char *msg;
41
 
 
 
32
  
42
33
  DRIZZLE_ERROR(Session *session, uint32_t code_arg, enum_warning_level level_arg,
43
34
              const char *msg_arg)
44
35
    :code(code_arg), level(level_arg)
54
45
void push_warning_printf(Session *session, DRIZZLE_ERROR::enum_warning_level level,
55
46
                         uint32_t code, const char *format, ...);
56
47
void drizzle_reset_errors(Session *session, bool force);
57
 
bool mysqld_show_warnings(Session *session, 
58
 
                          std::bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show);
 
48
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show);
59
49
 
60
50
extern const LEX_STRING warning_level_names[];
61
51
 
62
 
} /* namespace drizzled */
63
 
 
64
52
#endif /* DRIZZLED_SQL_ERROR_H */