~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.cc

Reverted changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
  /* For 4.0 MYD and 4.0 InnoDB compatibility */
97
97
  flags|= UNSIGNED_FLAG;
98
98
  unireg_check= unireg_check_arg;
99
 
  if (! share->timestamp_field && unireg_check != NONE)
 
99
  if (! share->getTimestampField() && unireg_check != NONE)
100
100
  {
101
101
    /* This timestamp has auto-update */
102
 
    share->timestamp_field= this;
 
102
    share->setTimestampField(this);
103
103
    flags|= TIMESTAMP_FLAG;
104
104
    if (unireg_check != TIMESTAMP_DN_FIELD)
105
105
      flags|= ON_UPDATE_NOW_FLAG;