From e60160a65651c5ad4b9a9faa1c38328b2137cb97 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Fri, 6 Jul 2007 01:32:36 +0000 Subject: [PATCH] Backported fix for CORE-1347 - Unexpected "cannot transliterate" error --- src/jrd/evl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jrd/evl.cpp b/src/jrd/evl.cpp index 526fdac766..890cc66c63 100644 --- a/src/jrd/evl.cpp +++ b/src/jrd/evl.cpp @@ -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(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 */