Skip to content

Commit

Permalink
Fix for atatvar
Browse files Browse the repository at this point in the history
  • Loading branch information
KushaalShroff committed Dec 12, 2024
1 parent 5874025 commit 39b0e6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/babelfishpg_tsql/src/pl_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -5297,7 +5297,7 @@ Datum
pltsql_call_handler(PG_FUNCTION_ARGS)
{
bool nonatomic;
PLtsql_function *func;
PLtsql_function *func = NULL;
PLtsql_execstate *save_cur_estate;
Datum retval;
int rc;
Expand Down Expand Up @@ -5417,6 +5417,9 @@ pltsql_call_handler(PG_FUNCTION_ARGS)
}
PG_FINALLY();
{
/* If func is NULL then we have encountered a parser error. */
if (!func)
send_error = true;
sql_dialect = saved_dialect;
}
PG_END_TRY();
Expand Down

0 comments on commit 39b0e6d

Please sign in to comment.