18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef DRIZZLED_STATEMENT_H
22
#define DRIZZLED_STATEMENT_H
21
#ifndef DRIZZLED_COMMAND_H
22
#define DRIZZLED_COMMAND_H
24
#include <drizzled/server_includes.h>
24
25
#include <drizzled/definitions.h>
25
26
#include <drizzled/error.h>
26
27
#include <drizzled/sql_parse.h>
27
28
#include <drizzled/sql_base.h>
28
29
#include <drizzled/show.h>
42
* @brief Represents a statement to be executed
42
* @brief Represents a command to be executed
47
Statement(Session *in_session)
47
SqlCommand(enum enum_sql_command in_comm_type,
49
: comm_type(in_comm_type),
49
50
session(in_session)
52
virtual ~Statement() {}
53
virtual ~SqlCommand() {}
55
* Execute the statement.
56
* Execute the command.
57
* @return true on failure; false on success
58
* @return 1 on failure; 0 on success
59
virtual bool execute()= 0;
60
virtual int execute()= 0;
65
* The type of this command.
67
enum enum_sql_command comm_type;
64
70
* A session handler.
69
} /* namespace statement */
71
} /* namespace drizzled */
73
#endif /* DRIZZLED_STATEMENT_H */
75
} /* end namespace command */
77
} /* end namespace drizzled */
79
#endif /* DRIZZLED_COMMAND_H */