~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2010-02-27 01:53:04 UTC
  • mfrom: (1309.1.17 fix_is)
  • Revision ID: brian@gaz-20100227015304-xxruqg8c4snj32u3
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    status_var_increment(session->status_var.com_stat[SQLCOM_CHANGE_DB]);
197
197
    string tmp(packet, packet_length);
198
198
 
199
 
    if (not mysql_change_db(session, tmp, false))
 
199
    if (not mysql_change_db(session, tmp))
200
200
    {
201
201
      session->my_ok();
202
202
    }
925
925
  ptr->table_name=table->table.str;
926
926
  ptr->table_name_length=table->table.length;
927
927
  ptr->lock_type=   lock_type;
928
 
  ptr->updating=    test(table_options & TL_OPTION_UPDATING);
929
928
  ptr->force_index= test(table_options & TL_OPTION_FORCE_INDEX);
930
929
  ptr->ignore_leaves= test(table_options & TL_OPTION_IGNORE_LEAVES);
931
930
  ptr->derived=     table->sel;
1198
1197
 
1199
1198
void Select_Lex::set_lock_for_tables(thr_lock_type lock_type)
1200
1199
{
1201
 
  bool for_update= lock_type >= TL_READ_NO_INSERT;
1202
 
 
1203
1200
  for (TableList *tables= (TableList*) table_list.first;
1204
1201
       tables;
1205
1202
       tables= tables->next_local)
1206
1203
  {
1207
1204
    tables->lock_type= lock_type;
1208
 
    tables->updating=  for_update;
1209
1205
  }
1210
 
  return;
1211
1206
}
1212
1207
 
1213
1208