From ad60c5b70bdaa4cea92c28a61dacf7fa2310411a Mon Sep 17 00:00:00 2001 From: skidder Date: Sun, 21 Sep 2003 17:49:16 +0000 Subject: [PATCH] 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 --- src/dsql/pass1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsql/pass1.cpp b/src/dsql/pass1.cpp index f71316085b..a4e6edd0bc 100644 --- a/src/dsql/pass1.cpp +++ b/src/dsql/pass1.cpp @@ -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++;