~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Brian Aker
  • Date: 2009-11-11 21:40:59 UTC
  • mfrom: (1208.3.3 reference)
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@gaz-20091111214059-0xfxkwrrixpx2jd9
Update for cursor name change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
    key is not updated
409
409
  */
410
410
  if (idx != table->s->primary_key && table->s->primary_key < MAX_KEY &&
411
 
      (table->file->ha_table_flags() & HA_PRIMARY_KEY_IN_READ_INDEX))
 
411
      (table->cursor->ha_table_flags() & HA_PRIMARY_KEY_IN_READ_INDEX))
412
412
    return is_key_used(table, table->s->primary_key, fields);
413
413
  return 0;
414
414
}