~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/r/fulltext_var.result

  • 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
drop table if exists t1;
 
2
show variables like "ft\_%";
 
3
Variable_name   Value
 
4
ft_boolean_syntax       + -><()~*:""&|
 
5
ft_max_word_len 84
 
6
ft_min_word_len 4
 
7
ft_query_expansion_limit        20
 
8
ft_stopword_file        (built-in)
 
9
create table t1 (b text not null);
 
10
insert t1 values ('aaaaaa bbbbbb cccccc');
 
11
insert t1 values ('bbbbbb cccccc');
 
12
insert t1 values ('aaaaaa cccccc');
 
13
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
14
b
 
15
aaaaaa bbbbbb cccccc
 
16
aaaaaa cccccc
 
17
set ft_boolean_syntax=' +-><()~*:""&|';
 
18
ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
 
19
set global ft_boolean_syntax=' +-><()~*:""&|';
 
20
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
21
b
 
22
aaaaaa bbbbbb cccccc
 
23
bbbbbb cccccc
 
24
set global ft_boolean_syntax='@ -><()~*:""&|';
 
25
select * from t1 where match b against ('+aaaaaa bbbbbb' in boolean mode);
 
26
b
 
27
aaaaaa bbbbbb cccccc
 
28
bbbbbb cccccc
 
29
aaaaaa cccccc
 
30
select * from t1 where match b against ('+aaaaaa @bbbbbb' in boolean mode);
 
31
b
 
32
aaaaaa bbbbbb cccccc
 
33
bbbbbb cccccc
 
34
set global ft_boolean_syntax='@ -><()~*:""@|';
 
35
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '@ -><()~*:""@|'
 
36
set global ft_boolean_syntax='+ -><()~*:""@!|';
 
37
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '+ -><()~*:""@!|'
 
38
drop table t1;