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

Backported CORE-3697: String truncation error when selecting from a VIEW with UNION inside.

This commit is contained in:
dimitr 2012-03-14 11:12:41 +00:00
parent e317ce8fae
commit 6753377f31

View File

@ -1542,10 +1542,12 @@ static void gen_constant( dsql_req* request, const dsc* desc, bool negate_value)
**/
static void gen_constant( dsql_req* request, dsql_nod* node, bool negate_value)
{
if (node->nod_desc.dsc_dtype == dtype_text)
node->nod_desc.dsc_length = ((dsql_str*) node->nod_arg[0])->str_length;
dsc desc = node->nod_desc;
gen_constant(request, &node->nod_desc, negate_value);
if (desc.dsc_dtype == dtype_text)
desc.dsc_length = ((dsql_str*) node->nod_arg[0])->str_length;
gen_constant(request, &desc, negate_value);
}