mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
db03bda0ed
BitKeeper/etc/ignore: Added mysql-test/bug36522-64.tar mysql-test/bug36522.tar mysql-test/t.log mysql-test/tps.log to the ignore list
126 lines
5.4 KiB
Text
126 lines
5.4 KiB
Text
SET @start_value = @@global.key_cache_age_threshold;
|
|
SELECT @start_value;
|
|
@start_value
|
|
300
|
|
'#--------------------FN_DYNVARS_056_01------------------------#'
|
|
SET @@global.key_cache_age_threshold = 99;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
|
|
SET @@global.key_cache_age_threshold = DEFAULT;
|
|
ERROR 42000: Variable 'key_cache_age_threshold' doesn't have a default value
|
|
'Bug# 34878: This variable has default value according to documentation';
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
'#---------------------FN_DYNVARS_056_02-------------------------#'
|
|
SET @@global.key_cache_age_threshold = @start_value;
|
|
SELECT @@global.key_cache_age_threshold = 300;
|
|
@@global.key_cache_age_threshold = 300
|
|
1
|
|
'#--------------------FN_DYNVARS_056_03------------------------#'
|
|
SET @@global.key_cache_age_threshold = 100;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
SET @@global.key_cache_age_threshold = 4294967295;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
4294967200
|
|
SET @@global.key_cache_age_threshold = 1800;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
1800
|
|
SET @@global.key_cache_age_threshold = 65535;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
65500
|
|
'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of Memory Warnings are coming';
|
|
'#--------------------FN_DYNVARS_056_04-------------------------#'
|
|
SET @@global.key_cache_age_threshold = -1;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
18446744073709551600
|
|
SET @@global.key_cache_age_threshold = 42949672951;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
42949672900
|
|
SET @@global.key_cache_age_threshold = 10000.01;
|
|
ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
42949672900
|
|
SET @@global.key_cache_age_threshold = -1024;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
18446744073709550500
|
|
SET @@global.key_cache_age_threshold = 99;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
|
|
SET @@global.key_cache_age_threshold = ON;
|
|
ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
SET @@global.key_cache_age_threshold = 'test';
|
|
ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
'#-------------------FN_DYNVARS_056_05----------------------------#'
|
|
SET @@session.key_cache_age_threshold = 0;
|
|
ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SELECT @@session.key_cache_age_threshold;
|
|
ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable
|
|
'#----------------------FN_DYNVARS_056_06------------------------#'
|
|
SELECT @@global.key_cache_age_threshold = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='key_cache_age_threshold';
|
|
@@global.key_cache_age_threshold = VARIABLE_VALUE
|
|
1
|
|
SELECT @@key_cache_age_threshold = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
|
WHERE VARIABLE_NAME='key_cache_age_threshold';
|
|
@@key_cache_age_threshold = VARIABLE_VALUE
|
|
1
|
|
'#---------------------FN_DYNVARS_056_07----------------------#'
|
|
SET @@global.key_cache_age_threshold = TRUE;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect key_cache_age_threshold value: '1'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
SET @@global.key_cache_age_threshold = FALSE;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect key_cache_age_threshold value: '0'
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
100
|
|
'#---------------------FN_DYNVARS_056_08----------------------#'
|
|
SET @@global.key_cache_age_threshold = 101;
|
|
SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold;
|
|
@@key_cache_age_threshold = @@global.key_cache_age_threshold
|
|
1
|
|
'#---------------------FN_DYNVARS_056_09----------------------#'
|
|
SET key_cache_age_threshold = 8000;
|
|
ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SELECT @@key_cache_age_threshold;
|
|
@@key_cache_age_threshold
|
|
100
|
|
SET local.key_cache_age_threshold = 10;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10' at line 1
|
|
SELECT local.key_cache_age_threshold;
|
|
ERROR 42S02: Unknown table 'local' in field list
|
|
SET global.key_cache_age_threshold = 10;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10' at line 1
|
|
SELECT global.key_cache_age_threshold;
|
|
ERROR 42S02: Unknown table 'global' in field list
|
|
SELECT key_cache_age_threshold = @@session.key_cache_age_threshold;
|
|
ERROR 42S22: Unknown column 'key_cache_age_threshold' in 'field list'
|
|
SET @@global.key_cache_age_threshold = @start_value;
|
|
SELECT @@global.key_cache_age_threshold;
|
|
@@global.key_cache_age_threshold
|
|
300
|