~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/show_errors.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-26 03:17:31 UTC
  • mfrom: (1124 staging)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: osullivan.padraig@gmail.com-20090826031731-at2as3ledixngra3
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <drizzled/server_includes.h>
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
 
#include <drizzled/command/show_errors.h>
25
 
 
26
 
int drizzled::command::ShowErrors::execute()
 
24
#include <drizzled/statement/show_errors.h>
 
25
 
 
26
#include <bitset>
 
27
 
 
28
using namespace std;
 
29
using namespace drizzled;
 
30
 
 
31
bool statement::ShowErrors::execute()
27
32
{
28
 
  int res= mysqld_show_warnings(session, (uint32_t)
29
 
                               (1L << (uint32_t) DRIZZLE_ERROR::WARN_LEVEL_ERROR));
 
33
  bitset<DRIZZLE_ERROR::NUM_ERRORS> warning_levels;
 
34
  warning_levels.set(DRIZZLE_ERROR::WARN_LEVEL_ERROR);
 
35
  bool res= mysqld_show_warnings(session, warning_levels);
30
36
  return res;
31
37
}