~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-21 21:25:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2346.
  • Revision ID: olafvdspek@gmail.com-20110621212517-vdo1al1e7o0mcu2v
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    {
212
212
      FileSort filesort(*session);
213
213
      table->sort.io_cache= new internal::io_cache_st;
214
 
 
215
 
 
216
 
      if (not (sortorder= make_unireg_sortorder((Order*) order->first, &length, NULL)) ||
217
 
          (table->sort.found_records = filesort.run(table, sortorder, length,
218
 
                                                    select, HA_POS_ERROR, 1,
219
 
                                                    examined_rows)) == HA_POS_ERROR)
 
214
      sortorder= make_unireg_sortorder((Order*) order->first, &length, NULL);
 
215
 
 
216
      if ((table->sort.found_records= filesort.run(table, sortorder, length, select, HA_POS_ERROR, 1, examined_rows)) == HA_POS_ERROR)
220
217
      {
221
218
        delete select;
222
219
        free_underlaid_joins(session, &session->lex().select_lex);