~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.h

  • Committer: Paul McCullagh
  • Date: 2010-04-26 11:13:26 UTC
  • mto: (1511.1.2 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: paul.mccullagh@primebase.org-20100426111326-wz8uhj3uu7qo07oa
Fixed bug #567402 pbxt doesn't build on debian ppc 32bit

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();
56
57
  HA_CREATE_INFO create_info;
57
58
  AlterInfo alter_info;
58
59
  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;
 
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;
62
63
 
63
64
  /* The text in a CHANGE COLUMN clause in ALTER TABLE */
64
65
  char *change;
77
78
  bool is_create_table_like;
78
79
  bool is_if_not_exists;
79
80
  bool is_engine_set;
80
 
 
81
 
  bool validateCreateTableOption();
82
81
};
83
82
 
84
83
} /* namespace statement */