diff options
author | monty@hundin.mysql.fi <> | 2001-08-30 20:38:46 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-08-30 20:38:46 +0300 |
commit | b3d9ec2124c87bc6e425073e1f3b5c023dd9b8ac (patch) | |
tree | fa44c1b8609882d0b22d31e80a46e08c5545c71c /sql/ha_myisam.cc | |
parent | 55edbd24cf31a10419c6b2a31b0fece6869f0145 (diff) | |
download | mariadb-git-b3d9ec2124c87bc6e425073e1f3b5c023dd9b8ac.tar.gz |
Increase version number
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 8be62920308..a429d5308dd 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -231,8 +231,16 @@ int ha_myisam::close(void) int ha_myisam::write_row(byte * buf) { statistic_increment(ha_write_count,&LOCK_status); + + /* If we have a timestamp column, update it to the current time */ + if (table->time_stamp) update_timestamp(buf+table->time_stamp-1); + + /* + If we have an auto_increment column and we are writing a changed row + or a new row, then update the auto_increment value in the record. + */ if (table->next_number_field && buf == table->record[0]) update_auto_increment(); return mi_write(file,buf); |