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

Fixed CORE-2355 - Incorrect handling of LOWER/UPPER when result string shrinks in terms of byte length

This commit is contained in:
asfernandes 2009-03-07 17:39:05 +00:00
parent 0300caf8c9
commit 9514e5f757

View File

@ -3978,8 +3978,8 @@ static dsc* low_up_case(thread_db* tdbb, const dsc* value, impure_value* impure,
if (value->isText())
{
(textType->*tt_str_to_case)(desc.dsc_length, impure->vlu_desc.dsc_address,
desc.dsc_length, impure->vlu_desc.dsc_address);
impure->vlu_desc.dsc_length = (textType->*tt_str_to_case)(desc.dsc_length,
impure->vlu_desc.dsc_address, desc.dsc_length, impure->vlu_desc.dsc_address);
}
}