summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/session_tracker_last_gtid.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/session_tracker_last_gtid.test')
-rw-r--r--mysql-test/main/session_tracker_last_gtid.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/main/session_tracker_last_gtid.test b/mysql-test/main/session_tracker_last_gtid.test
new file mode 100644
index 00000000..58aee2de
--- /dev/null
+++ b/mysql-test/main/session_tracker_last_gtid.test
@@ -0,0 +1,20 @@
+--source include/not_embedded.inc
+--source include/have_innodb.inc
+--source include/have_binlog_format_statement.inc
+
+--enable_session_track_info
+
+--echo #
+--echo # MDEV-15477: SESSION_SYSVARS_TRACKER does not track last_gtid
+--echo #
+
+SET gtid_seq_no=1000;
+SET @@session.session_track_system_variables='last_gtid';
+create table t1 (a int) engine=innodb;
+select @@last_gtid;
+insert into t1 values (1);
+select @@last_gtid;
+drop table t1;
+
+--disable_session_track_info
+reset master;