Debian Codegraph @

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

raw
1 SET @start_global_value = @@global.query_cache_strip_comments;
2 select @@global.query_cache_strip_comments;
3 @@global.query_cache_strip_comments
4 0
5 select @@session.query_cache_strip_comments;
6 @@session.query_cache_strip_comments
7 0
8 show global variables like 'query_cache_strip_comments';
9 Variable_name Value
10 query_cache_strip_comments OFF
11 show session variables like 'query_cache_strip_comments';
12 Variable_name Value
13 query_cache_strip_comments OFF
14 select * from information_schema.global_variables where variable_name='query_cache_strip_comments';
15 VARIABLE_NAME VARIABLE_VALUE
16 QUERY_CACHE_STRIP_COMMENTS OFF
17 select * from information_schema.session_variables where variable_name='query_cache_strip_comments';
18 VARIABLE_NAME VARIABLE_VALUE
19 QUERY_CACHE_STRIP_COMMENTS OFF
20 set global query_cache_strip_comments=ON;
21 select @@global.query_cache_strip_comments;
22 @@global.query_cache_strip_comments
23 1
24 set global query_cache_strip_comments=OFF;
25 select @@global.query_cache_strip_comments;
26 @@global.query_cache_strip_comments
27 0
28 set global query_cache_strip_comments=1;
29 select @@global.query_cache_strip_comments;
30 @@global.query_cache_strip_comments
31 1
32 set session query_cache_strip_comments=ON;
33 select @@session.query_cache_strip_comments;
34 @@session.query_cache_strip_comments
35 1
36 set session query_cache_strip_comments=OFF;
37 select @@session.query_cache_strip_comments;
38 @@session.query_cache_strip_comments
39 0
40 set session query_cache_strip_comments=1;
41 select @@session.query_cache_strip_comments;
42 @@session.query_cache_strip_comments
43 1
44 set global query_cache_strip_comments=1.1;
45 ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments'
46 set session query_cache_strip_comments=1e1;
47 ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments'
48 set session query_cache_strip_comments="foo";
49 ERROR 42000: Variable 'query_cache_strip_comments' can't be set to the value of 'foo'
50 SET @@global.query_cache_strip_comments = @start_global_value;