From e68d7a24f3cc7f1823b7cf3ce68a3d4c923f70d7 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Thu, 5 Jul 2007 15:39:01 +0000 Subject: [PATCH] Fixed 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 76bcc3ecc3..8c3376269b 100644 --- a/src/jrd/evl.cpp +++ b/src/jrd/evl.cpp @@ -4614,8 +4614,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 */