Skip to content

Commit

Permalink
updating confition of recussursion
Browse files Browse the repository at this point in the history
Signed-off-by: Tanya Gupta <[email protected]>
  • Loading branch information
Tanya Gupta committed Jan 30, 2025
1 parent bb82eed commit 21b5816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ resolve_numeric_typmod_from_exp(Plan *plan, Node *expr)
outerplan = outerPlan(plan);

/* If this var referes to tuple returned by its outer plan then find the original tle from it */
if (plan != NULL && var->varno == OUTER_VAR)
if (plan && outerplan && !(IsA(plan, Result)) && var->varno == OUTER_VAR)
{
Assert(plan);
Assert(outerplan);
Expand Down

0 comments on commit 21b5816

Please sign in to comment.