~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.cc

  • Committer: Brian Aker
  • Date: 2010-12-16 02:16:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1999.
  • Revision ID: brian@tangent.org-20101216021637-owmmneuy57ddhcn3
uuid type code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    */
207
207
    if (table->timestamp_field)
208
208
    {
209
 
      if (table->isWriteSet(table->timestamp_field->position()))
210
 
      {
 
209
      if (table->isWriteSet(table->timestamp_field->field_index))
211
210
        table->timestamp_field_type= TIMESTAMP_NO_AUTO_SET;
212
 
      }
213
211
      else
214
212
      {
215
 
        table->setWriteSet(table->timestamp_field->position());
 
213
        table->setWriteSet(table->timestamp_field->field_index);
216
214
      }
217
215
    }
218
216
    /* Fix the expressions in SET clause */