Debian Codegraph @

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

raw
1
2
3 # 2011-11-15 - Added
4 #
5
6
7 SET @start_global_value = @@global.innodb_ft_server_stopword_table;
8 SELECT @start_global_value;
9
10 #
11 # exists as global only
12 #
13 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
14 select @@session.innodb_ft_server_stopword_table;
15 show global variables like 'innodb_ft_server_stopword_table';
16 show session variables like 'innodb_ft_server_stopword_table';
17 --disable_warnings
18 select * from performance_schema.global_variables where variable_name='innodb_ft_server_stopword_table';
19 select * from performance_schema.session_variables where variable_name='innodb_ft_server_stopword_table';
20 --enable_warnings
21
22 call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* user stopword table Salmon does not exist.");
23
24 --error ER_GLOBAL_VARIABLE
25 set session innodb_ft_server_stopword_table='Salmon';
26 --error ER_GLOBAL_VARIABLE
27 set @@session.innodb_ft_server_stopword_table='Salmon';
28
29 #
30 # incorrect types
31 #
32 --error ER_WRONG_TYPE_FOR_VAR
33 set global innodb_ft_server_stopword_table=1.1;
34 --error ER_WRONG_TYPE_FOR_VAR
35 set global innodb_ft_server_stopword_table=1e1;
36 --error ER_WRONG_VALUE_FOR_VAR
37 set global innodb_ft_server_stopword_table='Salmon';
38
39 #
40 # Cleanup
41 #
42
43 SET @@global.innodb_ft_server_stopword_table = @start_global_value;
44 SELECT @@global.innodb_ft_server_stopword_table;