Simplify tests' error handling
Remove STACK_ON_TEST_FUNCTION and MAKE_POSTGRES_ERROR. Instead use PG_exception_stack and PG_TRY. This makes error handling simpler and closer to what's used in production code.
Loading
Please sign in to comment
Remove STACK_ON_TEST_FUNCTION and MAKE_POSTGRES_ERROR. Instead use PG_exception_stack and PG_TRY. This makes error handling simpler and closer to what's used in production code.