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 9
5 select @@global.thread_cache_size;
6 @@global.thread_cache_size
7 9
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 9
13 show session variables like 'thread_cache_size';
14 Variable_name Value
15 thread_cache_size 9
16 select * from performance_schema.global_variables where variable_name='thread_cache_size';
17 VARIABLE_NAME VARIABLE_VALUE
18 thread_cache_size 9
19 select * from performance_schema.session_variables where variable_name='thread_cache_size';
20 VARIABLE_NAME VARIABLE_VALUE
21 thread_cache_size 9
22 set global thread_cache_size=1;
23 select @@global.thread_cache_size;
24 @@global.thread_cache_size
25 1
26 select * from performance_schema.global_variables where variable_name='thread_cache_size';
27 VARIABLE_NAME VARIABLE_VALUE
28 thread_cache_size 1
29 select * from performance_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 = DEFAULT;
35 SELECT @@global.thread_cache_size ;
36 @@global.thread_cache_size
37 9
38 SET @@global.thread_cache_size=-1;
39 Warnings:
40 Warning 1292 Truncated incorrect thread_cache_size value: '-1'
41 SELECT @@global.thread_cache_size;
42 @@global.thread_cache_size
43 0
44 SET @@global.thread_cache_size=16385;
45 Warnings:
46 Warning 1292 Truncated incorrect thread_cache_size value: '16385'
47 SELECT @@global.thread_cache_size;
48 @@global.thread_cache_size
49 16384
50 SET @@global.thread_cache_size=163856;
51 Warnings:
52 Warning 1292 Truncated incorrect thread_cache_size value: '163856'
53 SELECT @@global.thread_cache_size;
54 @@global.thread_cache_size
55 16384
56 SET @@global.thread_cache_size=-1635;
57 Warnings:
58 Warning 1292 Truncated incorrect thread_cache_size value: '-1635'
59 SELECT @@global.thread_cache_size;
60 @@global.thread_cache_size
61 0
62 SET @@global.thread_cache_size=' ';
63 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
64 SELECT @@global.thread_cache_size;
65 @@global.thread_cache_size
66 0
67 SET @@global.thread_cache_size=255.2;
68 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
69 SELECT @@global.thread_cache_size;
70 @@global.thread_cache_size
71 0
72 set global thread_cache_size=1.1;
73 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
74 set global thread_cache_size=1e1;
75 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
76 set global thread_cache_size="foo";
77 ERROR 42000: Incorrect argument type to variable 'thread_cache_size'
78 set global thread_cache_size=0;
79 select @@global.thread_cache_size;
80 @@global.thread_cache_size
81 0
82 set global thread_cache_size=cast(-1 as unsigned int);
83 Warnings:
84 Warning 1292 Truncated incorrect thread_cache_size value: '18446744073709551615'
85 select @@global.thread_cache_size;
86 @@global.thread_cache_size
87 16384
88 SET @@global.thread_cache_size = @start_global_value;
89 SELECT @@global.thread_cache_size;
90 @@global.thread_cache_size
91 9