Skip to content

Commit

Permalink
fix static code analyzer warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Tanzeel Khan <[email protected]>
  • Loading branch information
tanscorpio7 committed Dec 26, 2023
1 parent 207f63c commit 6810090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/babelfishpg_tsql/src/pl_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -4260,6 +4260,7 @@ pltsql_call_handler(PG_FUNCTION_ARGS)
int save_pltsql_trigger_depth = pltsql_trigger_depth;
int saved_dialect = sql_dialect;
int current_spi_stack_depth;
bool send_error = false;

create_queryEnv2(CacheMemoryContext, false);

Expand Down Expand Up @@ -4365,10 +4366,11 @@ pltsql_call_handler(PG_FUNCTION_ARGS)
pltsql_revert_guc(save_nestlevel);
pltsql_revert_last_scope_identity(scope_level);
sql_dialect = saved_dialect;
send_error = true;
}
PG_END_TRY();

terminate_batch(false /* send_error */ , false /* compile_error */ , current_spi_stack_depth);
terminate_batch(send_error /* send_error */ , false /* compile_error */ , current_spi_stack_depth);

return retval;
}
Expand Down

0 comments on commit 6810090

Please sign in to comment.