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

Tests: commit_id, truncate for Windows fix [#307]

This commit is contained in:
Aleksey Midenkov
2017-11-23 21:51:54 +03:00
parent aeee150656
commit 1e3620cc39
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ engine innodb;
insert into t1 values (); insert into t1 values ();
--real_sleep 0.01
set @ts0= now(6); set @ts0= now(6);
insert into t1 values (); insert into t1 values ();
select sys_trx_start from t1 where id = last_insert_id() into @tx0; select sys_trx_start from t1 where id = last_insert_id() into @tx0;

View File

@@ -18,7 +18,9 @@ drop table t;
create table t (a int) with system versioning; create table t (a int) with system versioning;
insert into t values (1), (2); insert into t values (1), (2);
update t set a=11 where a=1; update t set a=11 where a=1;
--real_sleep 0.01
set @ts1=now(6); set @ts1=now(6);
--real_sleep 0.01
update t set a=22 where a=2; update t set a=22 where a=2;
select * from t for system_time all; select * from t for system_time all;
truncate t to system_time timestamp @ts1; truncate t to system_time timestamp @ts1;