21
21
#ifndef DRIZZLED_STATEMENT_CREATE_TABLE_H
22
22
#define DRIZZLED_STATEMENT_CREATE_TABLE_H
24
#include "drizzled/statement.h"
25
#include "drizzled/foreign_key.h"
24
#include <drizzled/statement.h>
31
30
namespace statement
37
36
CreateTable(Session *in_session)
39
Statement(in_session),
40
is_create_table_like(false),
41
is_if_not_exists(false),
44
memset(&create_info, 0, sizeof(create_info));
46
create_table_message.set_creation_timestamp(time(NULL));
47
create_table_message.set_update_timestamp(time(NULL));
38
Statement(in_session, SQLCOM_CREATE_TABLE)
51
message::Table create_table_message;
52
message::Table &createTableMessage()
54
return create_table_message;
56
message::Table::Field *current_proto_field;
57
HA_CREATE_INFO create_info;
59
KEY_CREATE_INFO key_create_info;
60
enum Foreign_key::fk_match_opt fk_match_option;
61
enum Foreign_key::fk_option fk_update_opt;
62
enum Foreign_key::fk_option fk_delete_opt;
64
/* The text in a CHANGE COLUMN clause in ALTER TABLE */
67
/* An item representing the DEFAULT clause in CREATE/ALTER TABLE */
70
/* An item representing the ON UPDATE clause in CREATE/ALTER TABLE */
71
Item *on_update_value;
73
enum column_format_type column_format;
78
bool is_create_table_like;
79
bool is_if_not_exists;
83
} /* namespace statement */
44
} /* end namespace statement */
85
} /* namespace drizzled */
46
} /* end namespace drizzled */
87
48
#endif /* DRIZZLED_STATEMENT_CREATE_TABLE_H */