mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Backported fix for CORE-1347 - Unexpected "cannot transliterate" error
This commit is contained in:
parent
8c1eba67c2
commit
e60160a656
@ -4224,8 +4224,11 @@ static bool string_boolean(thread_db* tdbb, jrd_nod* node, dsc* desc1,
|
||||
blb* blob = BLB_open(tdbb, request->req_transaction,
|
||||
reinterpret_cast<bid*>(desc1->dsc_address));
|
||||
|
||||
if (charset->isMultiByte() && !(obj->getFlags() & TEXTTYPE_DIRECT_MATCH))
|
||||
if (charset->isMultiByte() &&
|
||||
(node->nod_type == nod_contains || !(obj->getFlags() & TEXTTYPE_DIRECT_MATCH)))
|
||||
{
|
||||
buffer.getBuffer(blob->blb_length); // alloc space to put entire blob in memory
|
||||
}
|
||||
|
||||
/* Performs the string_function on each segment of the blob until
|
||||
a positive result is obtained */
|
||||
|
Loading…
Reference in New Issue
Block a user