Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/r/ |
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 : //home/usr.opt/mysql57/mysql-test/suite/sys_vars/r/innodb_table_locks_basic.result |
SET @session_start_value = @@session.innodb_table_locks; SELECT @session_start_value; @session_start_value 1 SET @global_start_value = @@global.innodb_table_locks; SELECT @global_start_value; @global_start_value 1 '#--------------------FN_DYNVARS_046_01------------------------#' SET @@session.innodb_table_locks = 0; SET @@session.innodb_table_locks = DEFAULT; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SET @@global.innodb_table_locks = 0; SET @@global.innodb_table_locks = DEFAULT; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 1 '#---------------------FN_DYNVARS_046_02-------------------------#' SET innodb_table_locks = 1; SELECT @@innodb_table_locks; @@innodb_table_locks 1 SELECT session.innodb_table_locks; ERROR 42S02: Unknown table 'session' in field list SELECT local.innodb_table_locks; ERROR 42S02: Unknown table 'local' in field list SELECT global.innodb_table_locks; ERROR 42S02: Unknown table 'global' in field list SET session innodb_table_locks = 0; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 0 SET global innodb_table_locks = 0; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 '#--------------------FN_DYNVARS_046_03------------------------#' SET @@session.innodb_table_locks = 0; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 0 SET @@session.innodb_table_locks = 1; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SET @@global.innodb_table_locks = 0; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 SET @@global.innodb_table_locks = 1; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 1 '#--------------------FN_DYNVARS_046_04-------------------------#' SET @@session.innodb_table_locks = -6; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '-6' SET @@session.innodb_table_locks = 1.6; ERROR 42000: Incorrect argument type to variable 'innodb_table_locks' SET @@session.innodb_table_locks = "T"; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'T' SET @@session.innodb_table_locks = "Y"; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'Y' SET @@session.innodb_table_locks = TRÜE; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'TRÜE' SET @@session.innodb_table_locks = ÕN; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'ÕN' SET @@session.innodb_table_locks = OF; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 0 SET @@session.innodb_table_locks = ÓFF; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'ÓFF' SET @@global.innodb_table_locks = -1; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '-1' SET @@global.innodb_table_locks = 2; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '2' SET @@global.innodb_table_locks = "T"; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'T' SET @@global.innodb_table_locks = "Y"; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'Y' SET @@global.innodb_table_locks = TRÜE; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'TRÜE' SET @@global.innodb_table_locks = QN; ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'QN' SET @@global.innodb_table_locks = OF; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 '#-------------------FN_DYNVARS_046_05----------------------------#' SET @@global.innodb_table_locks = 0; SET @@session.innodb_table_locks = 1; SELECT @@global.innodb_table_locks AS res_is_0; res_is_0 0 SET @@global.innodb_table_locks = 0; SELECT @@session.innodb_table_locks AS res_is_1; res_is_1 1 '#----------------------FN_DYNVARS_046_06------------------------#' SELECT IF(@@global.innodb_table_locks, "ON", "OFF") = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_table_locks'; IF(@@global.innodb_table_locks, "ON", "OFF") = VARIABLE_VALUE 1 SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_table_locks'; VARIABLE_VALUE OFF '#----------------------FN_DYNVARS_046_07------------------------#' SELECT IF(@@session.innodb_table_locks, "ON", "OFF") = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_table_locks'; IF(@@session.innodb_table_locks, "ON", "OFF") = VARIABLE_VALUE 1 SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_table_locks'; VARIABLE_VALUE ON '#---------------------FN_DYNVARS_046_08-------------------------#' SET @@session.innodb_table_locks = OFF; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 0 SET @@session.innodb_table_locks = ON; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SET @@global.innodb_table_locks = OFF; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 SET @@global.innodb_table_locks = ON; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 1 '#---------------------FN_DYNVARS_046_09----------------------#' SET @@session.innodb_table_locks = TRUE; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SET @@session.innodb_table_locks = FALSE; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 0 SET @@global.innodb_table_locks = TRUE; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 1 SET @@global.innodb_table_locks = FALSE; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 0 SET @@session.innodb_table_locks = @session_start_value; SELECT @@session.innodb_table_locks; @@session.innodb_table_locks 1 SET @@global.innodb_table_locks = @global_start_value; SELECT @@global.innodb_table_locks; @@global.innodb_table_locks 1