From 62ad8ea507a8d160aa5206fbe729053c15cca4de Mon Sep 17 00:00:00 2001 From: asfernandes Date: Thu, 26 Mar 2009 16:18:55 +0000 Subject: [PATCH] Fixed CORE-2389 - Wrong matching of SIMILAR TO expression with brackets --- src/jrd/SimilarToMatcher.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jrd/SimilarToMatcher.h b/src/jrd/SimilarToMatcher.h index fe121f5731..14671b5e00 100644 --- a/src/jrd/SimilarToMatcher.h +++ b/src/jrd/SimilarToMatcher.h @@ -1311,7 +1311,11 @@ bool SimilarToMatcher::Evaluator::match() } if (node->len + node->len2 != 0 && p >= end) - return false; + { + ret = false; + state = msReturning; + break; + } } if (notInSet(bufferPos, 1, node->str3, node->len3) == 0)