~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Brian Aker
  • Date: 2010-06-08 06:42:22 UTC
  • Revision ID: brian@gaz-20100608064222-91h6yilydxke9umi
Cursor now fully handles the update to timestamp for the engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1458
1458
   * Cursor interface and into the fill_record() method.
1459
1459
   */
1460
1460
  if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT)
 
1461
  {
1461
1462
    table->timestamp_field->set_time();
 
1463
  }
1462
1464
 
1463
1465
  DRIZZLE_INSERT_ROW_START(table_share->getSchemaName(), table_share->getTableName());
1464
1466
  setTransactionReadWrite();
1508
1510
  }
1509
1511
  else
1510
1512
  {
 
1513
    if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE)
 
1514
    {
 
1515
      table->timestamp_field->set_time();
 
1516
    }
 
1517
 
1511
1518
    error= doUpdateRecord(old_data, new_data);
1512
1519
    if (unlikely(plugin::EventObserver::afterUpdateRecord(*table, old_data, new_data, error)))
1513
1520
    {