mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Increase version number
sql/ha_myisam.cc: Added comments
This commit is contained in:
parent
16a2502047
commit
18cd5fe5e0
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue