~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

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

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

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