mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
e32736ec59
We do this by checking server status. By doing this we avoid printing session tracking info from previous (but not the last) statement. The change is from Sergei Golubchik
27 lines
534 B
Text
27 lines
534 B
Text
#
|
|
# MDEV-15477: SESSION_SYSVARS_TRACKER does not track last_gtid
|
|
#
|
|
SET gtid_seq_no=1000;
|
|
SET @@session.session_track_system_variables='last_gtid';
|
|
create table t1 (a int) engine=innodb;
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
|
-- last_gtid
|
|
-- 0-1-1000
|
|
|
|
select @@last_gtid;
|
|
@@last_gtid
|
|
0-1-1000
|
|
insert into t1 values (1);
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
|
-- last_gtid
|
|
-- 0-1-1001
|
|
|
|
select @@last_gtid;
|
|
@@last_gtid
|
|
0-1-1001
|
|
drop table t1;
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
|
-- last_gtid
|
|
-- 0-1-1002
|
|
|
|
reset master;
|