~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#pragma once
22
 
 
23
 
#include <drizzled/alter_info.h>
24
 
#include <drizzled/statement.h>
25
 
#include <drizzled/foreign_key.h>
26
 
#include <drizzled/sql_lex.h>
27
 
 
28
 
namespace drizzled {
29
 
namespace statement {
 
21
#ifndef DRIZZLED_STATEMENT_CREATE_TABLE_H
 
22
#define DRIZZLED_STATEMENT_CREATE_TABLE_H
 
23
 
 
24
#include "drizzled/statement.h"
 
25
#include "drizzled/foreign_key.h"
 
26
 
 
27
namespace drizzled
 
28
{
 
29
class Session;
 
30
 
 
31
namespace statement
 
32
{
30
33
 
31
34
class CreateTable : public Statement
32
35
{
43
46
 
44
47
  bool execute();
45
48
 
46
 
  virtual bool executeInner(const identifier::Table&);
 
49
  virtual bool executeInner(identifier::Table::const_reference);
47
50
 
48
51
public:
49
52
  message::Table &createTableMessage()
50
53
  {
51
 
    return *lex().table();
 
54
    return *getSession()->lex->table();
52
55
  };
53
56
 
54
57
private:
100
103
 
101
104
} /* namespace drizzled */
102
105
 
 
106
#endif /* DRIZZLED_STATEMENT_CREATE_TABLE_H */