~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.h

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_STATEMENT_CREATE_TABLE_H
22
22
#define DRIZZLED_STATEMENT_CREATE_TABLE_H
23
23
 
24
 
#include <drizzled/statement.h>
25
 
#include <drizzled/foreign_key.h>
 
24
#include "drizzled/statement.h"
 
25
#include "drizzled/foreign_key.h"
26
26
 
27
27
namespace drizzled
28
28
{
36
36
  virtual bool check(const identifier::Table&);
37
37
 
38
38
public:
39
 
  CreateTable(Session *in_session, Table_ident *ident, bool is_temporary);
40
 
  CreateTable(Session *in_session);
 
39
  CreateTable(Session *in_session) :
 
40
      Statement(in_session),
 
41
      change(NULL),
 
42
      default_value(NULL),
 
43
      on_update_value(NULL),
 
44
      is_engine_set(false),
 
45
      is_create_table_like(false),
 
46
      lex_identified_temp_table(false),
 
47
      link_to_local(false),
 
48
      create_table_list(NULL)
 
49
  {
 
50
  }
41
51
 
42
52
  virtual bool is_alter() const
43
53
  {
45
55
  }
46
56
 
47
57
  bool execute();
48
 
 
49
58
  virtual bool executeInner(identifier::Table::const_reference);
50
59
 
51
60
public:
52
61
  message::Table &createTableMessage()
53
62
  {
54
 
    return *getSession()->getLex()->table();
 
63
    return *session->lex->table();
55
64
  };
56
65
 
57
66
private: