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:
@ -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;
|
||||
|
Reference in New Issue
Block a user