8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Fixed inability to execute LIKE/STARTING/etc if the second argument is a small (<32KB) blob and the first one is a blob of charset NONE. This is partially related to CORE-3233, see my comment there.

This commit is contained in:
dimitr 2011-02-17 17:40:27 +00:00
parent 5573581488
commit 7e182bc025

View File

@ -935,13 +935,9 @@ bool ComparativeBoolNode::stringBoolean(thread_db* tdbb, jrd_req* request, dsc*
// Get address and length of search string - make it string if necessary
// but don't transliterate character set if the source blob is binary
VaryStr<256> temp2;
if (!computed_invariant)
{
if (type1 == ttype_none)
l2 = MOV_get_string(desc2, &p2, &temp2, sizeof(temp2));
else
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str);
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str);
}
blb* blob = BLB_open(tdbb, request->req_transaction, reinterpret_cast<bid*>(desc1->dsc_address));