1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -240,3 +240,14 @@ drop procedure test_04;
drop procedure test_05;
-- source suite/versioning/common_finish.inc
#
# MDEV-14788 System versioning cannot be based on local timestamps, as it is now
#
set timestamp=1000000019;
select now() < sysdate();
create table t1 (a int) with system versioning;
insert t1 values (1);
select * from t1 for system_time as of now(6);
select * from t1 for system_time as of sysdate(6);
drop table t1;