1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

More tests for SEQUENCE's

- Test with LOCK TABLES
- Test mysqldump
- Don't update rows for sequence tables if values doesn't change. This is
  needed as InnoDB gives an error for updates where values doesn't change.
This commit is contained in:
Monty
2017-05-24 18:57:47 +03:00
parent 8acf4d6f78
commit a4789f52d8
5 changed files with 119 additions and 1 deletions

View File

@ -6041,7 +6041,13 @@ int handler::update_first_row(uchar *new_data)
{
int end_error;
if (!(error= ha_rnd_next(table->record[1])))
error= update_row(table->record[1], new_data);
{
/*
We have to do the memcmp as otherwise we may get error 169 from InnoDB
*/
if (memcmp(table->record[0], table->record[1], table->s->reclength))
error= update_row(table->record[1], new_data);
}
end_error= ha_rnd_end();
if (!error)
error= end_error;