8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

Fixed CORE-1033 - like doesn't work for computed values (at least in a view)

This commit is contained in:
asfernandes 2006-12-02 00:46:51 +00:00
parent df0d781398
commit d24d14f963

View File

@ -2843,12 +2843,12 @@ static dsc* concatenate(thread_db* tdbb, jrd_nod* node, impure_value* impure)
return value2;
{
USHORT ttype1 = INTL_TTYPE(value1);
USHORT ttype1 = INTL_TEXT_TYPE(*value1);
if ((value2->dsc_sub_type != CS_NONE) &&
((ttype1 == CS_NONE) || (ttype1 == CS_ASCII)))
{
ttype1 = value2->dsc_sub_type;
ttype1 = INTL_TEXT_TYPE(*value2);
}
/* Both values are present; build the concatenation */