mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Fixed CORE-2721 - Issue with SIMILAR TO and UTF8 on 2.5 Beta 2 (and 1)
This commit is contained in:
parent
0863924cbc
commit
c89d55bafa
@ -1162,7 +1162,8 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::match(int limit, int s
|
||||
break;
|
||||
|
||||
case opExactly:
|
||||
if (node->len > bufferEnd - bufferPos || memcmp(node->str, bufferPos, node->len) != 0)
|
||||
if (node->len > bufferEnd - bufferPos ||
|
||||
memcmp(node->str, bufferPos, node->len * sizeof(CharType)) != 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -1440,7 +1441,7 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::match()
|
||||
case opExactly:
|
||||
fb_assert(state == msIterating);
|
||||
if (node->len > bufferEnd - bufferPos ||
|
||||
memcmp(node->str, bufferPos, node->len) != 0)
|
||||
memcmp(node->str, bufferPos, node->len * sizeof(CharType)) != 0)
|
||||
{
|
||||
ret = false;
|
||||
state = msReturning;
|
||||
|
Loading…
Reference in New Issue
Block a user