~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2008-07-05 17:07:46 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: monty@inaugust.com-20080705170746-8aq11u9fuwtfwy85
Removed my_alarm. Made my_lock only do the non-alarm version. Moved my_lock to MyISAM where it belongs.

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;