~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_table.cc

  • Committer: Brian Aker
  • Date: 2009-09-24 06:23:51 UTC
  • mfrom: (1128.2.12 merge)
  • Revision ID: brian@gaz-20090924062351-nuf8tv8ftg7oc9ad
Merge of Lex -> Statement refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
31
31
  TableList *all_tables= session->lex->query_tables;
32
32
  assert(first_table == all_tables && first_table != 0);
33
 
  if (! session->lex->drop_temporary)
 
33
  if (! drop_temporary)
34
34
  {
35
35
    if (! session->endActiveTransaction())
36
36
    {
45
45
  /* DDL and binlog write order protected by LOCK_open */
46
46
  bool res= mysql_rm_table(session, 
47
47
                           first_table, 
48
 
                           session->lex->drop_if_exists, 
49
 
                           session->lex->drop_temporary);
 
48
                           drop_if_exists, 
 
49
                           drop_temporary);
50
50
  return res;
51
51
}