diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-30 20:39:18 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-30 20:39:18 +0300 |
commit | 634378a5ac6a8a9acc4f1d10fe31ca2f92b84b0c (patch) | |
tree | 9d186edd14bed4d6ef2833a0467331f24f553f0f | |
parent | e6a8e97c48729d310012a8058b70c66c38be36cb (diff) | |
parent | 18cd5fe5e0dbb43367623a6e4a96d757edd0c78d (diff) | |
download | mariadb-git-634378a5ac6a8a9acc4f1d10fe31ca2f92b84b0c.tar.gz |
Merge work:/home/bk/mysql into hundin.mysql.fi:/my/bk/mysql
configure.in:
Auto merged
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | sql/ha_myisam.cc | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 60227701ac8..210082d7eee 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(sql/mysqld.cc) AC_CANONICAL_SYSTEM # The Docs Makefile.am parses this line! -AM_INIT_AUTOMAKE(mysql, 3.23.41) +AM_INIT_AUTOMAKE(mysql, 3.23.42) AM_CONFIG_HEADER(config.h) PROTOCOL_VERSION=10 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); |