~ubuntu-branches/ubuntu/vivid/drizzle/vivid-proposed

« back to all changes in this revision

Viewing changes to drizzled/statement/create_table.cc

  • Committer: Package Import Robot
  • Author(s): Tobias Frost
  • Date: 2013-08-22 20:18:31 UTC
  • mto: (20.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20130822201831-gn3ozsh7o7wmc5tk
Tags: upstream-7.2.3
ImportĀ upstreamĀ versionĀ 7.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <drizzled/plugin/storage_engine.h>
30
30
#include <drizzled/select_create.h>
31
31
#include <drizzled/table_ident.h>
 
32
#include <drizzled/catalog/instance.h>
32
33
 
33
34
#include <iostream>
34
35
 
116
117
 
117
118
  drizzled::message::table::init(createTableMessage(), createTableMessage().name(), create_table_list->getSchemaName(), create_info().db_type->getName());
118
119
 
119
 
  identifier::Table new_table_identifier(create_table_list->getSchemaName(),
 
120
  identifier::Table new_table_identifier(session().catalog().identifier(),
 
121
                                         create_table_list->getSchemaName(),
120
122
                                       create_table_list->getTableName(),
121
123
                                       createTableMessage().type());
122
124
 
239
241
      {
240
242
        res= create_like_table(&session(), 
241
243
                               new_table_identifier,
242
 
                               identifier::Table(select_tables->getSchemaName(),
 
244
                               identifier::Table(session().catalog().identifier(),
 
245
                                                 select_tables->getSchemaName(),
243
246
                                                 select_tables->getTableName()),
244
247
                               createTableMessage(),
245
248
                               lex().exists(),