~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Brian Aker
  • Date: 2009-01-07 09:27:07 UTC
  • Revision ID: brian@tangent.org-20090107092707-bn67qpdllfcyh3j9
Removing dead field translator code.

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
#include <drizzled/sql_alloc.h>
 
24
 
 
25
class DRIZZLE_ERROR: public Sql_alloc
32
26
{
33
27
public:
34
 
  static const uint32_t NUM_ERRORS= 4;
35
28
  enum enum_warning_level
36
29
  { WARN_LEVEL_NOTE, WARN_LEVEL_WARN, WARN_LEVEL_ERROR, WARN_LEVEL_END};
37
30
 
54
47
void push_warning_printf(Session *session, DRIZZLE_ERROR::enum_warning_level level,
55
48
                         uint32_t code, const char *format, ...);
56
49
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);
 
50
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show);
59
51
 
60
52
extern const LEX_STRING warning_level_names[];
61
53
 
62
 
} /* namespace drizzled */
63
 
 
64
54
#endif /* DRIZZLED_SQL_ERROR_H */