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

Make RIGHT JOIN symmetrical to LEFT JOIN at DSQL layer.

This fixes a couple issues when engine rejected correct RIGHT JOINs
or accepted incorrect and failed subsequentally during query execution
This commit is contained in:
skidder 2003-09-21 17:49:16 +00:00
parent 272080a727
commit ad60c5b70b

View File

@ -4385,12 +4385,12 @@ static DSQL_NOD pass1_join(DSQL_REQ request, DSQL_NOD input, bool proc_flag)
request->req_in_outer_join--;
break;
case nod_join_right:
node->nod_arg[e_join_rght_rel] =
PASS1_node(request, input->nod_arg[e_join_rght_rel], proc_flag);
request->req_in_outer_join++;
node->nod_arg[e_join_left_rel] =
PASS1_node(request, input->nod_arg[e_join_left_rel], proc_flag);
request->req_in_outer_join--;
node->nod_arg[e_join_rght_rel] =
PASS1_node(request, input->nod_arg[e_join_rght_rel], proc_flag);
break;
case nod_join_full:
request->req_in_outer_join++;