Debian Codegraph @

mysql-test/suite/sys_vars/t/shared_memory_basic.test

raw
1 --source include/windows.inc
2 #
3 # only global
4 #
5 select @@global.shared_memory;
6 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
7 select @@session.shared_memory;
8 show global variables like 'shared_memory';
9 show session variables like 'shared_memory';
10 --disable_warnings
11 select * from performance_schema.global_variables where variable_name='shared_memory';
12 select * from performance_schema.session_variables where variable_name='shared_memory';
13 --enable_warnings
14
15 #
16 # show that it's read-only
17 #
18 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
19 set global shared_memory=1;
20 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
21 set session shared_memory=1;