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

Do not generate not needed blr_derived_expr for view's fields.

This commit is contained in:
asfernandes 2009-11-14 23:58:17 +00:00
parent 810b378e95
commit 6d3576a447

View File

@ -173,7 +173,8 @@ void GEN_expr(CompiledStatement* statement, dsql_nod* node)
// ASF: If we are not referencing a field, we should evaluate the expression based on
// a set (ORed) of contexts. If any of them are in a valid position the expression is
// evaluated, otherwise a NULL will be returned. This is fix for CORE-1246.
if (node->nod_arg[e_derived_field_value]->nod_type != nod_field &&
if (node->nod_arg[e_derived_field_value]->nod_type != nod_derived_field &&
node->nod_arg[e_derived_field_value]->nod_type != nod_field &&
node->nod_arg[e_derived_field_value]->nod_type != nod_dbkey &&
node->nod_arg[e_derived_field_value]->nod_type != nod_map)
{