mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
171 lines
5.6 KiB
Text
171 lines
5.6 KiB
Text
|
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;
|
|||
|
SET @@session.innodb_table_locks = 1.6;
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of '1.6'
|
|||
|
SET @@session.innodb_table_locks = "T";
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'T'
|
|||
|
SET @@session.innodb_table_locks = "Y";
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'Y'
|
|||
|
SET @@session.innodb_table_locks = TR<54>E;
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'TRÜE'
|
|||
|
SET @@session.innodb_table_locks = <20>N;
|
|||
|
ERROR 42000: Variable '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
|
|||
|
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
|
|||
|
SET @@session.innodb_table_locks = <20>FF;
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'ÓFF'
|
|||
|
SET @@global.innodb_table_locks = -1;
|
|||
|
SET @@global.innodb_table_locks = 2;
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of '2'
|
|||
|
SET @@global.innodb_table_locks = "T";
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'T'
|
|||
|
SET @@global.innodb_table_locks = "Y";
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'Y'
|
|||
|
SET @@global.innodb_table_locks = TR<54>E;
|
|||
|
ERROR 42000: Variable 'table_locks' can't be set to the value of 'TRÜE'
|
|||
|
SET @@global.innodb_table_locks = QN;
|
|||
|
ERROR 42000: Variable '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
|
|||
|
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
|
|||
|
'#-------------------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 @@global.innodb_table_locks =
|
|||
|
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|||
|
WHERE VARIABLE_NAME='innodb_table_locks';
|
|||
|
@@global.innodb_table_locks =
|
|||
|
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 @@session.innodb_table_locks =
|
|||
|
VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
|||
|
WHERE VARIABLE_NAME='innodb_table_locks';
|
|||
|
@@session.innodb_table_locks =
|
|||
|
VARIABLE_VALUE
|
|||
|
0
|
|||
|
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
|