summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-09-02 19:58:08 +0300
committerunknown <monty@hundin.mysql.fi>2001-09-02 19:58:08 +0300
commit3719b87396063fadf9a88a6acc6584f1321a7d6a (patch)
treec1066773b871f44ebb365c32dab0432f7da6da94 /sql/ha_myisam.cc
parentfa7b17e904a73da0e938eac8e8d1503838d78202 (diff)
parentddee00a6edc735b3bbef42b7d0d662091debd560 (diff)
downloadmariadb-git-3719b87396063fadf9a88a6acc6584f1321a7d6a.tar.gz
merge
configure.in: Auto merged sql/ha_innobase.cc: Auto merged sql/ha_myisam.cc: Auto merged sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/lock.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_load.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index 7d7bae1112b..c192443da0a 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);