Current Path : /usr/opt/mysql57/mysql-test/suite/sys_vars/inc/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/sys_vars/inc/global_boolean_var_basic.inc |
# # This checks if a given global boolean variable exists and works. # --echo # Save default value. eval SET @default_var_value = @@GLOBAL.$var_name; eval SELECT @@GLOBAL.$var_name; --echo # Try setting to 1. eval SET @@GLOBAL.$var_name = 1; eval SELECT @@GLOBAL.$var_name; --echo # Try setting to 0. eval SET @@GLOBAL.$var_name = 0; eval SELECT @@GLOBAL.$var_name; --echo # Try setting to 1 (again). eval SET @@GLOBAL.$var_name = 1; eval SELECT @@GLOBAL.$var_name; --echo # Try setting to 0 (again). eval SET @@GLOBAL.$var_name = 0; eval SELECT @@GLOBAL.$var_name; --echo # Check what happens if we set the same value as current. eval SET @@GLOBAL.$var_name = 1; eval SET @@GLOBAL.$var_name = 1; eval SET @@GLOBAL.$var_name = 0; eval SET @@GLOBAL.$var_name = 0; --echo # Try using variable as local. --error ER_GLOBAL_VARIABLE eval SET $var_name = 1; --echo # Finished. Restore default value. eval SET @@GLOBAL.$var_name = @default_var_value;