~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/show_errors.h

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_STATEMENT_SHOW_ERRORS_H
22
 
#define DRIZZLED_STATEMENT_SHOW_ERRORS_H
 
21
#ifndef DRIZZLED_COMMAND_SHOW_ERRORS_H
 
22
#define DRIZZLED_COMMAND_SHOW_ERRORS_H
23
23
 
24
 
#include <drizzled/statement.h>
 
24
#include <drizzled/command.h>
25
25
 
26
26
class Session;
27
27
 
28
28
namespace drizzled
29
29
{
30
 
namespace statement
 
30
namespace command
31
31
{
32
32
 
33
 
class ShowErrors : public Statement
 
33
class ShowErrors : public SqlCommand
34
34
{
35
35
public:
36
 
  ShowErrors(Session *in_session)
 
36
  ShowErrors(enum enum_sql_command in_comm_type,
 
37
             Session *in_session)
37
38
    :
38
 
      Statement(in_session)
 
39
      SqlCommand(in_comm_type, in_session)
39
40
  {}
40
41
 
41
 
  bool execute();
42
 
 
43
 
private:
44
 
  static const enum enum_sql_command type= SQLCOM_SHOW_ERRORS;
 
42
  int execute();
45
43
};
46
44
 
47
 
} /* end namespace statement */
 
45
} /* end namespace command */
48
46
 
49
47
} /* end namespace drizzled */
50
48
 
51
 
#endif /* DRIZZLED_STATEMENT_SHOW_ERRORS_H */
 
49
#endif /* DRIZZLED_COMMAND_SHOW_ERRORS_H */