~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Brian Aker
  • Date: 2010-05-15 01:19:45 UTC
  • Revision ID: brian@gaz-20100515011945-uxhf94vi0tzm0vq6
Rename of KEY to KeyInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
      if (!can_compare_record || table->compare_record())
457
457
      {
458
458
        /* Non-batched update */
459
 
        error= table->cursor->ha_update_row(table->record[1],
 
459
        error= table->cursor->updateRecord(table->record[1],
460
460
                                            table->record[0]);
461
461
        if (!error || error == HA_ERR_RECORD_IS_THE_SAME)
462
462
        {
523
523
    last one without error. error > 0 means an error (e.g. unique key
524
524
    violation and no IGNORE or REPLACE). error == 0 is also an error (if
525
525
    preparing the record or invoking before triggers fails). See
526
 
    ha_autocommit_or_rollback(error>=0) and return(error>=0) below.
 
526
    autocommitOrRollback(error>=0) and return(error>=0) below.
527
527
    Sometimes we want to binlog even if we updated no rows, in case user used
528
528
    it to be sure master and slave are in same state.
529
529
  */