1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-14788 System versioning cannot be based on local timestamps, as it is now

use system time, not @@timestamp
This commit is contained in:
Sergei Golubchik
2018-01-04 22:15:05 +01:00
committed by Aleksey Midenkov
parent c92bf28b5f
commit be81b00c84
4 changed files with 50 additions and 21 deletions

View File

@ -343,3 +343,15 @@ drop procedure test_02;
drop procedure test_03;
drop procedure test_04;
drop procedure test_05;
set timestamp=1000000019;
select now() < sysdate();
now() < sysdate()
1
create table t1 (a int) with system versioning;
insert t1 values (1);
select * from t1 for system_time as of now(6);
a
select * from t1 for system_time as of sysdate(6);
a
1
drop table t1;