mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@@ -18,21 +18,27 @@ insert into t1 values ();
|
||||
set @ts0= now(6);
|
||||
insert into t1 values ();
|
||||
|
||||
--disable_cursor_protocol
|
||||
--enable_prepare_warnings
|
||||
|
||||
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;
|
||||
|
||||
@@ -72,22 +78,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;
|
||||
|
||||
--disable_prepare_warnings
|
||||
|
Reference in New Issue
Block a user