Debian Codegraph @

mysql-test/suite/sys_vars/r/thread_cache_size_basic.result

raw
1 SET @start_global_value = @@global.thread_cache_size;
2 SELECT @start_global_value;
3 @start_global_value
4 256
5 select @@global.thread_cache_size;
6 @@global.thread_cache_size
7 256
8 select @@session.thread_cache_size;
9 ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable
10 show global variables like 'thread_cache_size';
11 Variable_name Value
12 thread_cache_size 256
13 show session variables like 'thread_cache_size';
14 Variable_name Value
15 thread_cache_size 256
16 select * from information_schema.global_variables where variable_name='thread_cache_size';
17 VARIABLE_NAME VARIABLE_VALUE
18 THREAD_CACHE_SIZE 256
19 select * from information_schema.session_variables where variable_name='thread_cache_size';
20 VARIABLE_NAME VARIABLE_VALUE
21 THREAD_CACHE_SIZE 256
22 set global thread_cache_size=1;
23 select @@global.thread_cache_size;
24 @@global.thread_cache_size
25 1
26 select * from information_schema.global_variables where variable_name='thread_cache_size';
27 VARIABLE_NAME VARIABLE_VALUE
28 THREAD_CACHE_SIZE 1
29 select * from information_schema.session_variables where variable_name='thread_cache_size';
30 VARIABLE_NAME VARIABLE_VALUE
31 THREAD_CACHE_SIZE 1
32 set session thread_cache_size=1;
33 ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
34 set global thread_cache_size=1.1;
35 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
36 set global thread_cache_size=1e1;
37 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
38 set global thread_cache_size="foo";
39 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
40 set global thread_cache_size=0;
41 select @@global.thread_cache_size;
42 @@global.thread_cache_size
43 0
44 set global thread_cache_size=cast(-1 as unsigned int);
45 Warnings:
46 Note 1105 Cast to unsigned converted negative integer to it's positive complement
47 Warning 1292 Truncated incorrect thread_cache_size value: '18446744073709551615'
48 select @@global.thread_cache_size;
49 @@global.thread_cache_size
50 16384
51 SET @@global.thread_cache_size = @start_global_value;
52 SELECT @@global.thread_cache_size;
53 @@global.thread_cache_size
54 256