Skip to content

Commit

Permalink
Fixed the main reason for CORE-3233: LIKE, STARTING and CONTAINING fa…
Browse files Browse the repository at this point in the history
…il if second operand >= 32K. Thanks to Adriano.
  • Loading branch information
dyemanov committed Feb 18, 2011
1 parent b3d34b2 commit 3447e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jrd/evl.cpp
Expand Up @@ -4741,7 +4741,7 @@ static bool string_boolean(thread_db* tdbb, jrd_nod* node, dsc* desc1,
/* Get address and length of search string - convert to datatype of data */

if (!computed_invariant) {
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str);
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str, false);
}

VaryStr<256> temp1;
Expand All @@ -4768,7 +4768,7 @@ static bool string_boolean(thread_db* tdbb, jrd_nod* node, dsc* desc1,
// Get address and length of search string - make it string if necessary
// but don't transliterate character set if the source blob is binary
if (!computed_invariant) {
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str);
l2 = MOV_make_string2(tdbb, desc2, type1, &p2, match_str, false);
}

blb* blob = BLB_open(tdbb, request->req_transaction, reinterpret_cast<bid*>(desc1->dsc_address));
Expand Down

0 comments on commit 3447e70

Please sign in to comment.