[Rt-commit] rt branch, 4.0/mysql-fts, updated. rt-4.0.0-222-g947f1c8
Ruslan Zakirov
ruz at bestpractical.com
Fri May 6 09:57:25 EDT 2011
The branch, 4.0/mysql-fts has been updated
via 947f1c8ed08b86b7106fac2454184249947f2093 (commit)
from 538c8fe0bdcd96c64f92ce107d89a01bb089a650 (commit)
Summary of changes:
t/fts/not_indexed.t | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 947f1c8ed08b86b7106fac2454184249947f2093
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Fri May 6 17:56:08 2011 +0400
test FTS condition (no matches) ORed with subject
diff --git a/t/fts/not_indexed.t b/t/fts/not_indexed.t
index 9d81647..93ede31 100644
--- a/t/fts/not_indexed.t
+++ b/t/fts/not_indexed.t
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use RT::Test tests => 9;
+use RT::Test tests => 13;
RT->Config->Set( FullTextSearch => Enable => 1, Indexed => 0 );
@@ -47,11 +47,13 @@ sub run_test {
{ Queue => $q->id },
{ Subject => 'book', Content => 'book' },
{ Subject => 'bar', Content => 'bar' },
+ { Subject => 'no content', Content => undef },
);
run_tests(
"Content LIKE 'book'" => { book => 1, bar => 0 },
- "Content LIKE 'bar'" => { book => 0, bar => 1 },
+ "Content LIKE 'bar'" => { book => 0, bar => 1 },
+ "(Content LIKE 'bar' OR Subject LIKE 'con')" => { 'no content' => 1 },
);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list