1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix tests on windows

This commit is contained in:
Sergei Golubchik
2018-01-11 16:34:32 +01:00
parent 28bed45469
commit 6a8cf407d2
5 changed files with 38 additions and 15 deletions

View File

@@ -245,6 +245,10 @@ set timestamp=1000000019;
select now() < sysdate();
create table t1 (a int) with system versioning;
insert t1 values (1);
--source suite/versioning/wait_system_clock.inc
set @a=sysdate(6);
select * from t1 for system_time as of now(6);
select * from t1 for system_time as of sysdate(6);

View File

@@ -146,6 +146,8 @@ explain partitions select * from t1;
set @str= concat('select row_start from t1 partition (pn) into @ts0');
prepare stmt from @str; execute stmt; drop prepare stmt;
--source suite/versioning/wait_system_clock.inc
set @now= now(6);
delete from t1;
execute select_p0;
@@ -158,6 +160,9 @@ select @ts0 = @ts1;
set @now= now(6);
insert into t1 values (2);
--source suite/versioning/wait_system_clock.inc
execute select_p0;
execute select_pn;
@@ -166,6 +171,9 @@ prepare stmt from @str; execute stmt; drop prepare stmt;
set @now= now(6);
update t1 set x = x + 1;
--source suite/versioning/wait_system_clock.inc
execute select_p0;
execute select_pn;