~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

init_read_record_idx return result should be checked now that it checks startIndexScan result.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
  }
252
252
  else
253
253
  {
254
 
    info.init_read_record_idx(session, table, 1, usable_index);
 
254
    if ((error= info.init_read_record_idx(session, table, 1, usable_index)))
 
255
    {
 
256
      table->print_error(error, MYF(0));
 
257
      delete select;
 
258
      free_underlaid_joins(session, select_lex);
 
259
      return true;
 
260
    }
255
261
  }
256
262
 
257
263
  session->set_proc_info("updating");