SELECT @@GLOBAL.disconnect_on_expired_password;
--echo 1 Expected
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET @@GLOBAL.disconnect_on_expired_password=0;
--echo Expected error 'Read only variable'
SELECT @@GLOBAL.disconnect_on_expired_password;
--echo 1 Expected
SELECT @@disconnect_on_expired_password = @@GLOBAL.disconnect_on_expired_password;
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.disconnect_on_expired_password);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.disconnect_on_expired_password);
--echo Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.disconnect_on_expired_password;
--echo 1 Expected
