~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.h

  • Committer: Jay Pipes
  • Date: 2009-02-21 16:00:06 UTC
  • mto: (907.1.1 trunk-with-temporal)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090221160006-vnk3wt4qbcz62eru
Removes the TIME column type and related time functions.

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