Skip to content

Commit

Permalink
Fixed CORE-2153 - SIMILAR TO predicate hangs with "|" option
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Oct 28, 2008
1 parent c1e42d3 commit f830dae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jrd/SimilarToMatcher.h
Expand Up @@ -1138,8 +1138,13 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::match()
{
if (state == 0)
{
scopes.push(Scope(start, limit));
state = 1;
if (start >= limit)
state = 2;
else
{
scopes.push(Scope(start, limit));
state = 1;
}
}

Scope* scope;
Expand Down

0 comments on commit f830dae

Please sign in to comment.