Skip to content

Commit

Permalink
updating the reccursion condition
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 b41268c commit bb82eed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 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 && outerplan && (IsA(outerplan, Gather) || IsA(plan, Gather)))
if (plan != NULL && var->varno == OUTER_VAR)
{
Assert(plan);
Assert(outerplan);
Expand All @@ -718,7 +718,7 @@ resolve_numeric_typmod_from_exp(Plan *plan, Node *expr)
// {
// Assert(plan);
// return (resolve_numeric_typmod_outer_var(plan, var->varattno));
// } // if gather node then
// } // if gather node then
// outerplan = outerPlan(plan);
// Assert(outerplan);
// tle = get_tle_by_resno(outerplan->targetlist, var->varattno);
Expand Down Expand Up @@ -1962,8 +1962,6 @@ PrepareRowDescription(TupleDesc typeinfo, PlannedStmt *plannedstmt, List *target
/*
* Get the IO function info from our type cache
*/
if (atttypmod == TSQLMaxTypmod)
atttypmod = -1;
finfo = TdsLookupTypeFunctionsByOid(atttypid, &atttypmod);
/* atttypid = getBaseTypeAndTypmod(atttypid, &atttypmod); */
#if 0
Expand Down

0 comments on commit bb82eed

Please sign in to comment.