mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14788 System versioning cannot be based on local timestamps, as it is now
followup to be81b00c84
Fix updates and deletes too
This commit is contained in:
@@ -616,12 +616,10 @@ No A B C D
|
||||
2 1 1 1 1
|
||||
3 1 1 1 1
|
||||
### Issue #365, bug 7 (duplicate of historical row)
|
||||
set timestamp= 1000000019;
|
||||
create or replace table t1 (a int primary key, b int)
|
||||
with system versioning engine myisam;
|
||||
insert into t1 (a) values (1);
|
||||
update t1 set b= 2;
|
||||
insert into t1 (a) values (1) on duplicate key update a= 2;
|
||||
ERROR 23000: Duplicate entry '1-2001-09-09 01:46:59.000000' for key 'PRIMARY'
|
||||
replace t1 values (1,2),(1,3),(2,4);
|
||||
ERROR 23000: Duplicate entry '1-YYYY-MM-DD hh:mm:ss.uuuuuu' for key 'PRIMARY'
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user