~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.h

  • Committer: Brian Aker
  • Date: 2010-03-19 01:45:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1362.
  • Revision ID: brian@gaz-20100319014539-jv38vkd8h9a4axzr
Another pass through the interface...

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
class CreateTable : public Statement
35
35
{
36
 
  virtual bool check(const TableIdentifier&);
37
 
 
38
36
public:
39
37
  CreateTable(Session *in_session)
40
38
    :
44
42
      is_engine_set(false)
45
43
  {
46
44
    memset(&create_info, 0, sizeof(create_info));
 
45
 
 
46
    create_table_message.set_creation_timestamp(time(NULL));
 
47
    create_table_message.set_update_timestamp(time(NULL));
47
48
  }
48
49
 
49
50
  bool execute();
50
51
  message::Table create_table_message;
51
 
  message::Table &createTableMessage()
52
 
  {
53
 
    return create_table_message;
54
 
  };
55
52
  message::Table::Field *current_proto_field;
56
53
  HA_CREATE_INFO create_info;
57
54
  AlterInfo alter_info;
58
55
  KEY_CREATE_INFO key_create_info;
59
 
  message::Table::ForeignKeyConstraint::ForeignKeyMatchOption fk_match_option;
60
 
  message::Table::ForeignKeyConstraint::ForeignKeyOption fk_update_opt;
61
 
  message::Table::ForeignKeyConstraint::ForeignKeyOption fk_delete_opt;
 
56
  enum Foreign_key::fk_match_opt fk_match_option;
 
57
  enum Foreign_key::fk_option fk_update_opt;
 
58
  enum Foreign_key::fk_option fk_delete_opt;
62
59
 
63
60
  /* The text in a CHANGE COLUMN clause in ALTER TABLE */
64
61
  char *change;
77
74
  bool is_create_table_like;
78
75
  bool is_if_not_exists;
79
76
  bool is_engine_set;
80
 
 
81
 
  bool validateCreateTableOption();
82
77
};
83
78
 
84
79
} /* namespace statement */