SET @start_global_value = @@global.min_examined_row_limit; SELECT @start_global_value; @start_global_value 0 SET @start_session_value = @@session.min_examined_row_limit; SELECT @start_session_value; @start_session_value 0 '#--------------------FN_DYNVARS_089_01-------------------------#' SET @@global.min_examined_row_limit = 100; SET @@global.min_examined_row_limit = DEFAULT; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 0 SET @@session.min_examined_row_limit = 200; SET @@session.min_examined_row_limit = DEFAULT; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 0 '#--------------------FN_DYNVARS_089_02-------------------------#' SET @@global.min_examined_row_limit = DEFAULT; SELECT @@global.min_examined_row_limit = 0; @@global.min_examined_row_limit = 0 1 SET @@session.min_examined_row_limit = DEFAULT; SELECT @@session.min_examined_row_limit = 0; @@session.min_examined_row_limit = 0 1 '#--------------------FN_DYNVARS_089_03-------------------------#' SET @@global.min_examined_row_limit = 0; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 0 SET @@global.min_examined_row_limit = 1; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 1 SET @@global.min_examined_row_limit = 60020; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 60020 SET @@global.min_examined_row_limit = 65535; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 65535 SET @@global.min_examined_row_limit = 4294967295; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 4294967295 SET @@global.min_examined_row_limit = 4294967294; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 4294967294 '#--------------------FN_DYNVARS_089_04-------------------------#' SET @@session.min_examined_row_limit = 0; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 0 SET @@session.min_examined_row_limit = 1; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 1 SET @@session.min_examined_row_limit = 50050; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 50050 SET @@session.min_examined_row_limit = 65535; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 65535 SET @@session.min_examined_row_limit = 4294967295; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 4294967295 SET @@session.min_examined_row_limit = 4294967294; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 4294967294 '#------------------FN_DYNVARS_089_05-----------------------#' SET @@global.min_examined_row_limit = 429496726; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 429496726 SET @@global.min_examined_row_limit = -1024; Warnings: Warning 1292 Truncated incorrect min_examined_row_limit value: '-1024' SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 0 SET @@global.min_examined_row_limit = 429496729500; Warnings: Warning 1292 Truncated incorrect min_examined_row_limit value: '429496729500' SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 4294967295 SET @@global.min_examined_row_limit = 65530.34; ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit' SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 4294967295 SET @@global.min_examined_row_limit = test; ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit' SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 4294967295 SET @@session.min_examined_row_limit = 4294967296; Warnings: Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967296' SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 4294967295 SET @@session.min_examined_row_limit = -1; Warnings: Warning 1292 Truncated incorrect min_examined_row_limit value: '-1' SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 0 SET @@session.min_examined_row_limit = 65530.34; ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit' SET @@session.min_examined_row_limit = 4294967295021; Warnings: Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967295021' SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 4294967295 SET @@session.min_examined_row_limit = test; ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit' SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 4294967295 '#------------------FN_DYNVARS_089_06-----------------------#' SELECT @@global.min_examined_row_limit = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='min_examined_row_limit'; @@global.min_examined_row_limit = VARIABLE_VALUE 1 '#------------------FN_DYNVARS_089_07-----------------------#' SELECT @@session.min_examined_row_limit = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='min_examined_row_limit'; @@session.min_examined_row_limit = VARIABLE_VALUE 1 '#------------------FN_DYNVARS_089_08-----------------------#' SET @@global.min_examined_row_limit = TRUE; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 1 SET @@global.min_examined_row_limit = FALSE; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 0 '#---------------------FN_DYNVARS_089_09----------------------#' SET @@global.min_examined_row_limit = 10; SELECT @@min_examined_row_limit = @@global.min_examined_row_limit; @@min_examined_row_limit = @@global.min_examined_row_limit 0 '#---------------------FN_DYNVARS_089_10----------------------#' SET @@min_examined_row_limit = 100; SELECT @@min_examined_row_limit = @@local.min_examined_row_limit; @@min_examined_row_limit = @@local.min_examined_row_limit 1 SELECT @@local.min_examined_row_limit = @@session.min_examined_row_limit; @@local.min_examined_row_limit = @@session.min_examined_row_limit 1 '#---------------------FN_DYNVARS_089_11----------------------#' SET min_examined_row_limit = 1; SELECT @@min_examined_row_limit; @@min_examined_row_limit 1 SELECT local.min_examined_row_limit; ERROR 42S02: Unknown table 'local' in field list SELECT session.min_examined_row_limit; ERROR 42S02: Unknown table 'session' in field list SELECT min_examined_row_limit = @@session.min_examined_row_limit; ERROR 42S22: Unknown column 'min_examined_row_limit' in 'field list' SET @@global.min_examined_row_limit = @start_global_value; SELECT @@global.min_examined_row_limit; @@global.min_examined_row_limit 0 SET @@session.min_examined_row_limit = @start_session_value; SELECT @@session.min_examined_row_limit; @@session.min_examined_row_limit 0