Skip to content

Commit

Permalink
numeric_trunc should only be used for strict function
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Bhagat <[email protected]>
  • Loading branch information
Rohit Bhagat committed Feb 5, 2025
1 parent 7ab691d commit 1968f4e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/backend/executor/execExprInterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,6 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)

fcinfo->isnull = false;
d = op->d.func.fn_addr(fcinfo);

if (sql_dialect == SQL_DIALECT_TSQL && bbf_trunc_numeric_result_hook)
d = bbf_trunc_numeric_result_hook(fcinfo->flinfo->fn_expr, d, get_func_rettype(fcinfo->flinfo->fn_oid));

*op->resvalue = d;
*op->resnull = fcinfo->isnull;

Expand Down

0 comments on commit 1968f4e

Please sign in to comment.