blob: 8d075f3150c19f14246f29b64c7b614bf432dcf1 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# ulong session
--source include/have_maria.inc
SET @start_global_value = @@global.aria_repair_threads;
#
# exists as global only
#
select @@global.aria_repair_threads;
select @@session.aria_repair_threads;
show global variables like 'aria_repair_threads';
show session variables like 'aria_repair_threads';
select * from information_schema.global_variables where variable_name='aria_repair_threads';
select * from information_schema.session_variables where variable_name='aria_repair_threads';
#
# show that it's writable
#
set global aria_repair_threads=10;
select @@global.aria_repair_threads;
set session aria_repair_threads=10;
select @@session.aria_repair_threads;
#
# incorrect types
#
--error ER_WRONG_TYPE_FOR_VAR
set global aria_repair_threads=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set session aria_repair_threads=1e1;
--error ER_WRONG_TYPE_FOR_VAR
set global aria_repair_threads="foo";
#
# min/max values, block size
#
set global aria_repair_threads=0;
select @@global.aria_repair_threads;
--disable_warnings
set session aria_repair_threads=cast(-1 as unsigned int);
--enable_warnings
--replace_result 4294967295 18446744073709551615
select @@session.aria_repair_threads;
SET @@global.aria_repair_threads = @start_global_value;
|