summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
blob: 07f0c4311384ff3f9b470c3e90afee4b4ff00792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# bool readonly

--source include/have_aria_used_for_temp_tables.inc
--source include/have_maria.inc
#
# show the global and session values;
#
select @@global.aria_used_for_temp_tables;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.aria_used_for_temp_tables;
show global variables like 'aria_used_for_temp_tables';
show session variables like 'aria_used_for_temp_tables';
select * from information_schema.global_variables where variable_name='aria_used_for_temp_tables';
select * from information_schema.session_variables where variable_name='aria_used_for_temp_tables';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global aria_used_for_temp_tables=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session aria_used_for_temp_tables=1;