diff options
author | unknown <mskold@mysql.com> | 2005-04-01 17:59:46 +0200 |
---|---|---|
committer | unknown <mskold@mysql.com> | 2005-04-01 17:59:46 +0200 |
commit | 163311138c23ebcf78b4b459b6a35ef8cc1a5dee (patch) | |
tree | 88aa10669dfa94db450dee1fc6a5bf4ecc2f5b44 /sql/ha_ndbcluster.cc | |
parent | 407d8d87433a616dddbe563adfe476ae90170213 (diff) | |
download | mariadb-git-163311138c23ebcf78b4b459b6a35ef8cc1a5dee.tar.gz |
Fix for bug#9435: TIMESTAMP columns don't update
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 92d5e6119aa..7025ac2cd1a 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -1953,7 +1953,11 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data) statistic_increment(ha_update_count,&LOCK_status); if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE) + { table->timestamp_field->set_time(); + // Set query_id so that field is really updated + table->timestamp_field->query_id= thd->query_id; + } /* Check for update of primary key for special handling */ if ((table->primary_key != MAX_KEY) && |