mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-31005: Make working cursor-protocol
Updated tests: cases with bugs or which cannot be run with the cursor-protocol were excluded with "--disable_cursor_protocol"/"--enable_cursor_protocol" Fix for v.10.5
This commit is contained in:
@ -17,19 +17,25 @@ insert into t1 values ();
|
||||
--real_sleep 0.01
|
||||
set @ts0= now(6);
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx0;
|
||||
--enable_cursor_protocol
|
||||
select transaction_id = @tx0 from mysql.transaction_registry
|
||||
order by transaction_id desc limit 1;
|
||||
|
||||
set @ts1= now(6);
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx1;
|
||||
--enable_cursor_protocol
|
||||
select transaction_id = @tx1 from mysql.transaction_registry
|
||||
order by transaction_id desc limit 1;
|
||||
|
||||
set @ts2= now(6);
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx2;
|
||||
--enable_cursor_protocol
|
||||
select transaction_id = @tx2 from mysql.transaction_registry
|
||||
order by transaction_id desc limit 1;
|
||||
|
||||
@ -69,22 +75,30 @@ select trt_trx_sees(0, @tx2);
|
||||
|
||||
set transaction isolation level read uncommitted;
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx3;
|
||||
--enable_cursor_protocol
|
||||
select isolation_level = 'READ-UNCOMMITTED' from mysql.transaction_registry where transaction_id = @tx3;
|
||||
|
||||
set transaction isolation level read committed;
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx4;
|
||||
--enable_cursor_protocol
|
||||
select isolation_level = 'READ-COMMITTED' from mysql.transaction_registry where transaction_id = @tx4;
|
||||
|
||||
set transaction isolation level serializable;
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx5;
|
||||
--enable_cursor_protocol
|
||||
select isolation_level = 'SERIALIZABLE' from mysql.transaction_registry where transaction_id = @tx5;
|
||||
|
||||
set transaction isolation level repeatable read;
|
||||
insert into t1 values ();
|
||||
--disable_cursor_protocol
|
||||
select sys_trx_start from t1 where id = last_insert_id() into @tx6;
|
||||
--enable_cursor_protocol
|
||||
select isolation_level = 'REPEATABLE-READ' from mysql.transaction_registry where transaction_id = @tx6;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user