~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/empty_query.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:
21
21
#ifndef DRIZZLED_COMMAND_EMPTY_QUERY_H
22
22
#define DRIZZLED_COMMAND_EMPTY_QUERY_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 EmptyQuery : public Statement
 
33
class EmptyQuery : public SqlCommand
34
34
{
35
35
public:
36
 
  EmptyQuery(Session *in_session)
 
36
  EmptyQuery(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_EMPTY_QUERY;
 
42
  int execute();
45
43
};
46
44
 
47
 
} /* end namespace statement */
 
45
} /* end namespace command */
48
46
 
49
47
} /* end namespace drizzled */
50
48