~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.h

  • Committer: Brian Aker
  • Date: 2010-12-19 06:20:54 UTC
  • mfrom: (2005.1.1 bug673105)
  • Revision ID: brian@tangent.org-20101219062054-1kt0l3dxs4z2z8md
Merge Dave.

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 identifier::Schema &identifier);
 
37
  bool check(const SchemaIdentifier &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
 
    getSession()->getLex()->sql_command=SQLCOM_CREATE_DB;
 
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);
45
55
  }
46
56
 
47
57
  bool execute();