~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/sys_vars/t/innodb_ft_server_stopword_table_basic.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
# 2011-11-15 - Added
 
4
#
 
5
 
 
6
--source include/have_innodb.inc
 
7
 
 
8
SET @start_global_value = @@global.innodb_ft_server_stopword_table;
 
9
SELECT @start_global_value;
 
10
 
 
11
#
 
12
# exists as global only
 
13
#
 
14
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
15
select @@session.innodb_ft_server_stopword_table;
 
16
show global variables like 'innodb_ft_server_stopword_table';
 
17
show session variables like 'innodb_ft_server_stopword_table';
 
18
select * from information_schema.global_variables where variable_name='innodb_ft_server_stopword_table';
 
19
select * from information_schema.session_variables where variable_name='innodb_ft_server_stopword_table';
 
20
 
 
21
--error ER_GLOBAL_VARIABLE
 
22
set session innodb_ft_server_stopword_table='Salmon';
 
23
--error ER_GLOBAL_VARIABLE
 
24
set @@session.innodb_ft_server_stopword_table='Salmon';
 
25
 
 
26
#
 
27
# incorrect types
 
28
#
 
29
--error ER_WRONG_TYPE_FOR_VAR
 
30
set global innodb_ft_server_stopword_table=1.1;
 
31
--error ER_WRONG_TYPE_FOR_VAR
 
32
set global innodb_ft_server_stopword_table=1e1;
 
33
--error ER_WRONG_VALUE_FOR_VAR
 
34
set global innodb_ft_server_stopword_table='Salmon';
 
35
 
 
36
#
 
37
# Cleanup
 
38
#
 
39
 
 
40
SET @@global.innodb_ft_server_stopword_table = @start_global_value;
 
41
SELECT @@global.innodb_ft_server_stopword_table;