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