~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: brian
  • Date: 2009-11-11 19:42:27 UTC
  • mfrom: (1211 staging)
  • mto: (1211.1.4 staging)
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@orisndriz04-20091111194227-mky4am3ym0dlosaa
Update for Cursor renaming.

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
}