~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/t/fulltext_var.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Fulltext configurable parameters
 
3
#
 
4
--disable_warnings
 
5
drop table if exists t1;
 
6
--enable_warnings
 
7
 
 
8
# Save ft_boolean_syntax variable
 
9
let $saved_ft_boolean_syntax=`select @@global.ft_boolean_syntax`;
 
10
 
 
11
show variables like "ft\_%";
 
12
 
 
13
create table t1 (b text not null);
 
14
insert t1 values ('aaaaaa bbbbbb cccccc');
 
15
insert t1 values ('bbbbbb cccccc');
 
16
insert t1 values ('aaaaaa cccccc');
 
17
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
18
-- error 1229
 
19
set ft_boolean_syntax=' +-><()~*:""&|';
 
20
set global ft_boolean_syntax=' +-><()~*:""&|';
 
21
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
22
set global ft_boolean_syntax='@ -><()~*:""&|';
 
23
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
24
select * from t1 where match b against ('+aaaaaa @bbbbbb' in boolean mode);
 
25
-- error 1231
 
26
set global ft_boolean_syntax='@ -><()~*:""@|';
 
27
-- error 1231
 
28
set global ft_boolean_syntax='+ -><()~*:""@!|';
 
29
drop table t1;
 
30
 
 
31
# Restore ft_boolean_syntax variable
 
32
--disable_query_log
 
33
eval set global ft_boolean_syntax='$saved_ft_boolean_syntax';
 
34
--enable_query_log
 
35
 
 
36
# End of 4.1 tests