~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.h

  • Committer: Lee Bieber
  • Date: 2011-02-23 23:22:48 UTC
  • mfrom: (2183.2.20 list2)
  • mto: This revision was merged to the branch mainline in revision 2197.
  • Revision ID: kalebral@gmail.com-20110223232248-ev4y8pyt16b806o0
Merge Olaf - Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
class CreateSchema : public Statement
36
36
{
37
 
  bool check(const SchemaIdentifier &identifier);
 
37
  bool check(const identifier::Schema &identifier);
38
38
 
39
39
public:
40
40
  CreateSchema(Session *in_session) :
41
41
    Statement(in_session),
42
42
    is_if_not_exists(false)
43
43
  {
44
 
    schema_message.set_creation_timestamp(time(NULL));
45
 
    schema_message.set_update_timestamp(time(NULL));
46
 
 
47
 
    /* 36 characters for uuid string +1 for NULL */
48
 
    uuid_t uu;
49
 
    char uuid_string[37];
50
 
    uuid_generate_random(uu);
51
 
    uuid_unparse(uu, uuid_string);
52
 
    schema_message.set_uuid(uuid_string, 36);
53
 
 
54
 
    schema_message.set_version(1);
 
44
    getSession()->getLex()->sql_command=SQLCOM_CREATE_DB;
55
45
  }
56
46
 
57
47
  bool execute();