~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.h

  • Committer: Brian Aker
  • Date: 2009-09-24 06:23:51 UTC
  • mfrom: (1128.2.12 merge)
  • Revision ID: brian@gaz-20090924062351-nuf8tv8ftg7oc9ad
Merge of Lex -> Statement refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
public:
36
36
  CreateTable(Session *in_session)
37
37
    :
38
 
      Statement(in_session, SQLCOM_CREATE_TABLE)
39
 
  {}
 
38
      Statement(in_session)
 
39
  {
 
40
    memset(&create_info, 0, sizeof(create_info));
 
41
  }
40
42
 
41
43
  bool execute();
 
44
  drizzled::message::Table create_table_proto;
 
45
  HA_CREATE_INFO create_info;
 
46
  AlterInfo alter_info;
 
47
  KEY_CREATE_INFO key_create_info;
 
48
  enum Foreign_key::fk_match_opt fk_match_option;
 
49
  enum Foreign_key::fk_option fk_update_opt;
 
50
  enum Foreign_key::fk_option fk_delete_opt;
 
51
 
 
52
  /* The text in a CHANGE COLUMN clause in ALTER TABLE */
 
53
  char *change;
 
54
 
 
55
  /* An item representing the DEFAULT clause in CREATE/ALTER TABLE */
 
56
  Item *default_value;
 
57
 
 
58
  /* An item representing the ON UPDATE clause in CREATE/ALTER TABLE */
 
59
  Item *on_update_value;
 
60
 
 
61
  enum column_format_type column_format;
 
62
 
 
63
  /* Poly-use */
 
64
  LEX_STRING comment;
42
65
};
43
66
 
44
67
} /* end namespace statement */