~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Jay Pipes
  • Date: 2009-08-16 14:14:39 UTC
  • mfrom: (1100.3.35 cleanup-exec-command)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: jpipes@serialcoder-20090816141439-6ltll44rh3kq7io5
Merge Padraig's continued cleanup of exec command classes plus a couple merge conflict resolutions...

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/sql_alloc.h>
24
24
#include "drizzled/lex_string.h"
25
25
 
 
26
#include <bitset>
 
27
 
26
28
class DRIZZLE_ERROR: public Sql_alloc
27
29
{
28
30
public:
 
31
  static const uint32_t NUM_ERRORS= 4;
29
32
  enum enum_warning_level
30
33
  { WARN_LEVEL_NOTE, WARN_LEVEL_WARN, WARN_LEVEL_ERROR, WARN_LEVEL_END};
31
34
 
48
51
void push_warning_printf(Session *session, DRIZZLE_ERROR::enum_warning_level level,
49
52
                         uint32_t code, const char *format, ...);
50
53
void drizzle_reset_errors(Session *session, bool force);
51
 
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show);
 
54
bool mysqld_show_warnings(Session *session, 
 
55
                          std::bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show);
52
56
 
53
57
extern const LEX_STRING warning_level_names[];
54
58