summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/sys_vars/t/gtid_binlog_state_basic.test
blob: f171086e2ce7d8b69464feeb60bd52b1d878876c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--source include/not_embedded.inc

# Most things with gtid_binlog_state requires binlog enabled, and so is
# tested in rpl suite.

SELECT @@GLOBAL.gtid_slave_pos;

--error ER_GLOBAL_VARIABLE
SET gtid_binlog_state= '';
--error ER_GLOBAL_VARIABLE
SET SESSION gtid_binlog_state= '';

--error ER_NO_DEFAULT
SET GLOBAL gtid_binlog_state= DEFAULT;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.gtid_binlog_state;