~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-15 18:21:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2408.
  • Revision ID: olafvdspek@gmail.com-20110815182146-1pg6jf39vwtff8o8
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1957
1957
  }
1958
1958
 
1959
1959
  new_table_message.CopyFrom(*source_table_message);
1960
 
 
1961
 
  if (destination_identifier.isTmp())
1962
 
  {
1963
 
    new_table_message.set_type(message::Table::TEMPORARY);
1964
 
  }
1965
 
  else
1966
 
  {
1967
 
    new_table_message.set_type(message::Table::STANDARD);
1968
 
  }
 
1960
  new_table_message.set_type(destination_identifier.isTmp() ? message::Table::TEMPORARY : message::Table::STANDARD);
1969
1961
 
1970
1962
  if (is_engine_set)
1971
1963
  {
1999
1991
    As mysql_truncate don't work on a new table at this stage of
2000
1992
    creation, instead create the table directly (for both normal and temporary tables).
2001
1993
  */
2002
 
  bool success= plugin::StorageEngine::createTable(session,
2003
 
                                                   destination_identifier,
2004
 
                                                   new_table_message);
 
1994
  bool success= plugin::StorageEngine::createTable(session, destination_identifier, new_table_message);
2005
1995
 
2006
1996
  if (success && not destination_identifier.isTmp())
2007
1997
  {