diff --git a/contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c b/contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c index 2a7915a525..9c099ba988 100644 --- a/contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c +++ b/contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c @@ -581,7 +581,7 @@ resolve_numeric_typmod_from_exp(Plan *plan, Node *expr) Assert(plan); outerplan = outerPlan(plan); tle = get_tle_by_resno(outerplan->targetlist, var->varattno); - resolve_numeric_typmod_from_exp(outerplan, (Node *)tle->expr); + return resolve_numeric_typmod_from_exp(outerplan, (Node *)tle->expr); } /* If this var referes to tuple returned by its outer plan then find the original tle from it */