summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <mskold@mysql.com>2005-04-01 17:59:46 +0200
committerunknown <mskold@mysql.com>2005-04-01 17:59:46 +0200
commit163311138c23ebcf78b4b459b6a35ef8cc1a5dee (patch)
tree88aa10669dfa94db450dee1fc6a5bf4ecc2f5b44 /sql/ha_ndbcluster.cc
parent407d8d87433a616dddbe563adfe476ae90170213 (diff)
downloadmariadb-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.cc4
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) &&