~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 15:59:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705155949-7cojlehrjxt2ck95
Add const
Remove unused vars

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
  TableList *all_tables= lex().query_tables;
107
107
  assert(first_table == all_tables && first_table != 0);
108
108
  Select_Lex *select_lex= &lex().select_lex;
109
 
  bool need_start_waiting= false;
110
109
 
111
110
  is_engine_set= not createTableMessage().engine().name().empty();
112
111
 
158
157
    return true;
159
158
  }
160
159
 
161
 
  if (not (need_start_waiting= not session().wait_if_global_read_lock(0, 1)))
 
160
  if (session().wait_if_global_read_lock(0, 1))
162
161
    return true;
163
162
 
164
163
  bool res;
1616
1615
    /* Tell handler that we have values for all columns in the to table */
1617
1616
    to->use_all_columns();
1618
1617
 
1619
 
    error= info.init_read_record(session, from, (optimizer::SqlSelect *) 0, 1, true);
 
1618
    error= info.init_read_record(session, from, NULL, 1, true);
1620
1619
    if (error)
1621
1620
    {
1622
1621
      to->print_error(errno, MYF(0));