~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Brian Aker
  • Date: 2010-12-17 00:08:06 UTC
  • mfrom: (2002.1.4 clean)
  • Revision ID: brian@tangent.org-20101217000806-fa6kmggjnhsl4q85
Rollup for field encapsulation, monty fix for bzrignore, and Andrew bug
fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  /* Copy the newly read columns into the new record. */
99
99
  for (field_p= table->getFields(); (field= *field_p); field_p++)
100
100
  {
101
 
    if (unique_map.test(field->field_index))
 
101
    if (unique_map.test(field->position()))
102
102
    {
103
103
      field->copy_from_tmp(table->getShare()->rec_buff_length);
104
104
    }
189
189
      if (table->timestamp_field_type == TIMESTAMP_AUTO_SET_ON_UPDATE ||
190
190
          table->timestamp_field_type == TIMESTAMP_AUTO_SET_ON_BOTH)
191
191
      {
192
 
        table->setWriteSet(table->timestamp_field->field_index);
 
192
        table->setWriteSet(table->timestamp_field->position());
193
193
      }
194
194
    }
195
195
  }