#
# only GLOBAL
#
SELECT @@GLOBAL.binlog_gtid_simple_recovery;
SELECT COUNT(@@GLOBAL.binlog_gtid_simple_recovery);
SELECT COUNT(@@binlog_gtid_simple_recovery);
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@SESSION.binlog_gtid_simple_recovery;
SHOW GLOBAL VARIABLES LIKE 'binlog_gtid_simple_recovery';
SHOW SESSION VARIABLES LIKE 'binlog_gtid_simple_recovery';
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='binlog_gtid_simple_recovery';
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='binlog_gtid_simple_recovery';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET GLOBAL binlog_gtid_simple_recovery=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET SESSION binlog_gtid_simple_recovery=1;

