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

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

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