Debian Codegraph @

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

raw
1 SET @start_global_value = @@global.innodb_adaptive_hash_index;
2 SELECT @start_global_value;
3 @start_global_value
4 1
5 Valid values are 'ON' and 'OFF'
6 select @@global.innodb_adaptive_hash_index in (0, 1);
7 @@global.innodb_adaptive_hash_index in (0, 1)
8 1
9 select @@global.innodb_adaptive_hash_index;
10 @@global.innodb_adaptive_hash_index
11 1
12 select @@session.innodb_adaptive_hash_index;
13 ERROR HY000: Variable 'innodb_adaptive_hash_index' is a GLOBAL variable
14 show global variables like 'innodb_adaptive_hash_index';
15 Variable_name Value
16 innodb_adaptive_hash_index ON
17 show session variables like 'innodb_adaptive_hash_index';
18 Variable_name Value
19 innodb_adaptive_hash_index ON
20 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
21 VARIABLE_NAME VARIABLE_VALUE
22 innodb_adaptive_hash_index ON
23 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
24 VARIABLE_NAME VARIABLE_VALUE
25 innodb_adaptive_hash_index ON
26 set global innodb_adaptive_hash_index='OFF';
27 select @@global.innodb_adaptive_hash_index;
28 @@global.innodb_adaptive_hash_index
29 0
30 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
31 VARIABLE_NAME VARIABLE_VALUE
32 innodb_adaptive_hash_index OFF
33 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
34 VARIABLE_NAME VARIABLE_VALUE
35 innodb_adaptive_hash_index OFF
36 set @@global.innodb_adaptive_hash_index=1;
37 select @@global.innodb_adaptive_hash_index;
38 @@global.innodb_adaptive_hash_index
39 1
40 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
41 VARIABLE_NAME VARIABLE_VALUE
42 innodb_adaptive_hash_index ON
43 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
44 VARIABLE_NAME VARIABLE_VALUE
45 innodb_adaptive_hash_index ON
46 set global innodb_adaptive_hash_index=0;
47 select @@global.innodb_adaptive_hash_index;
48 @@global.innodb_adaptive_hash_index
49 0
50 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
51 VARIABLE_NAME VARIABLE_VALUE
52 innodb_adaptive_hash_index OFF
53 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
54 VARIABLE_NAME VARIABLE_VALUE
55 innodb_adaptive_hash_index OFF
56 set @@global.innodb_adaptive_hash_index='ON';
57 select @@global.innodb_adaptive_hash_index;
58 @@global.innodb_adaptive_hash_index
59 1
60 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
61 VARIABLE_NAME VARIABLE_VALUE
62 innodb_adaptive_hash_index ON
63 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
64 VARIABLE_NAME VARIABLE_VALUE
65 innodb_adaptive_hash_index ON
66 set session innodb_adaptive_hash_index='OFF';
67 ERROR HY000: Variable 'innodb_adaptive_hash_index' is a GLOBAL variable and should be set with SET GLOBAL
68 set @@session.innodb_adaptive_hash_index='ON';
69 ERROR HY000: Variable 'innodb_adaptive_hash_index' is a GLOBAL variable and should be set with SET GLOBAL
70 set global innodb_adaptive_hash_index=1.1;
71 ERROR 42000: Incorrect argument type to variable 'innodb_adaptive_hash_index'
72 set global innodb_adaptive_hash_index=1e1;
73 ERROR 42000: Incorrect argument type to variable 'innodb_adaptive_hash_index'
74 set global innodb_adaptive_hash_index=2;
75 ERROR 42000: Variable 'innodb_adaptive_hash_index' can't be set to the value of '2'
76 set global innodb_adaptive_hash_index=-3;
77 ERROR 42000: Variable 'innodb_adaptive_hash_index' can't be set to the value of '-3'
78 select @@global.innodb_adaptive_hash_index;
79 @@global.innodb_adaptive_hash_index
80 1
81 select * from performance_schema.global_variables where variable_name='innodb_adaptive_hash_index';
82 VARIABLE_NAME VARIABLE_VALUE
83 innodb_adaptive_hash_index ON
84 select * from performance_schema.session_variables where variable_name='innodb_adaptive_hash_index';
85 VARIABLE_NAME VARIABLE_VALUE
86 innodb_adaptive_hash_index ON
87 set global innodb_adaptive_hash_index='AUTO';
88 ERROR 42000: Variable 'innodb_adaptive_hash_index' can't be set to the value of 'AUTO'
89 SET @@global.innodb_adaptive_hash_index = @start_global_value;
90 SELECT @@global.innodb_adaptive_hash_index;
91 @@global.innodb_adaptive_hash_index
92 1