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

Fixed CORE-3834: Usage of a NATURAL JOIN with a derived table crashes the server.

This commit is contained in:
dimitr 2012-04-27 16:31:24 +00:00
parent 74a5fa0552
commit cc6d7212d8

View File

@ -6720,7 +6720,7 @@ static dsql_nod* pass1_join(CompiledStatement* statement, dsql_nod* input)
coalesce->nod_arg[1] = MAKE_list(stack); coalesce->nod_arg[1] = MAKE_list(stack);
impJoinLeft->value = MAKE_node(nod_alias, e_alias_count); impJoinLeft->value = MAKE_node(nod_alias, e_alias_count);
impJoinLeft->value->nod_arg[e_alias_value] = coalesce; impJoinLeft->value->nod_arg[e_alias_value] = PASS1_node(statement, coalesce);
impJoinLeft->value->nod_arg[e_alias_alias] = reinterpret_cast<dsql_nod*>(fldName); impJoinLeft->value->nod_arg[e_alias_alias] = reinterpret_cast<dsql_nod*>(fldName);
impJoinLeft->value->nod_arg[e_alias_imp_join] = reinterpret_cast<dsql_nod*>(impJoinLeft); impJoinLeft->value->nod_arg[e_alias_imp_join] = reinterpret_cast<dsql_nod*>(impJoinLeft);