Debian Codegraph @

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

raw
1 --source include/have_innodb.inc
2
3 SET @start_global_value = @@global.innodb_tmpdir;
4 SELECT @start_global_value;
5
6 #
7 # exists as global and session
8 #
9 select @@session.innodb_tmpdir;
10
11 show global variables like 'innodb_tmpdir';
12 show session variables like 'innodb_tmpdir';
13
14 select * from information_schema.global_variables where variable_name='innodb_tmpdir';
15 select * from information_schema.session_variables where variable_name='innodb_tmpdir';
16 #
17 # Show that it is writable
18 #
19
20 set global innodb_tmpdir=@@global.tmpdir;
21 set session innodb_tmpdir=@@global.tmpdir;
22
23 #
24 # incorrect types
25 #
26 --error ER_WRONG_TYPE_FOR_VAR
27 set global innodb_tmpdir=1.1;
28 --error ER_WRONG_TYPE_FOR_VAR
29 set global innodb_tmpdir=1e1;
30
31 #
32 # path len more than 512
33 #
34 --error ER_WRONG_VALUE_FOR_VAR
35 set global innodb_tmpdir=repeat('a',1000);
36 show warnings;
37
38 #
39 # Cleanup
40 #
41
42 SET @@global.innodb_tmpdir = @start_global_value;
43 SELECT @@global.innodb_tmpdir;