~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

  • Committer: Monty Taylor
  • Date: 2009-05-09 22:13:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090509221347-l712szviusbobro0
Re-added bitset<> as a replacement for Bitmap<>

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
  /* Update the table->file->stats.records number */
153
153
  table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK);
154
154
 
155
 
  table->covering_keys.clear_all();
156
 
  table->quick_keys.clear_all();                // Can't use 'only index'
 
155
  table->covering_keys.reset();
 
156
  table->quick_keys.reset();            // Can't use 'only index'
157
157
  select=make_select(table, 0, 0, conds, 0, &error);
158
158
  if (error)
159
159
    goto err;
173
173
  }
174
174
 
175
175
  /* If running in safe sql mode, don't allow updates without keys */
176
 
  if (table->quick_keys.is_clear_all())
 
176
  if (table->quick_keys.none())
177
177
  {
178
178
    session->server_status|=SERVER_QUERY_NO_INDEX_USED;
179
179
    if (safe_update && !using_limit)
194
194
    SORT_FIELD  *sortorder;
195
195
    ha_rows examined_rows;
196
196
 
197
 
    if ((!select || table->quick_keys.is_clear_all()) && limit != HA_POS_ERROR)
 
197
    if ((!select || table->quick_keys.none()) && limit != HA_POS_ERROR)
198
198
      usable_index= get_index_for_order(table, (order_st*)(order->first), limit);
199
199
 
200
200
    if (usable_index == MAX_KEY)
504
504
      tbl->no_keyread=1;
505
505
      /* Don't use record cache */
506
506
      tbl->no_cache= 1;
507
 
      tbl->covering_keys.clear_all();
 
507
      tbl->covering_keys.reset();
508
508
      if (tbl->file->has_transactions())
509
509
        transactional_tables= 1;
510
510
      else