--- sql/pgtap.sql +++ sql/pgtap.sql @@ -776,10 +776,6 @@ RETURN ok( TRUE, descr ); EXCEPTION WHEN OTHERS THEN -- There should have been no exception. - GET STACKED DIAGNOSTICS - detail = PG_EXCEPTION_DETAIL, - hint = PG_EXCEPTION_HINT, - context = PG_EXCEPTION_CONTEXT; RETURN ok( FALSE, descr ) || E'\n' || diag( ' died: ' || _error_diag(SQLSTATE, SQLERRM, detail, hint, context, schname, tabname, colname, chkname, typname) ); @@ -6374,10 +6370,6 @@ -- Something went wrong. Record that fact. errstate := SQLSTATE; errmsg := SQLERRM; - GET STACKED DIAGNOSTICS - detail = PG_EXCEPTION_DETAIL, - hint = PG_EXCEPTION_HINT, - context = PG_EXCEPTION_CONTEXT; END; -- Always raise an exception to rollback any changes.