test: Add test to confirm ASSERT will return 500 Internal Server Error

Co-authored-by: Dmitry Wagin <dmitry.wagin@ya.ru>
This commit is contained in:
Wolfgang Walther
2021-11-25 22:56:49 +01:00
committed by Remo
co-authored by Dmitry Wagin
parent 81f9bf290c
commit 4fb0d1279c
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -365,6 +365,15 @@ END;
$$;
CREATE FUNCTION assert() RETURNS void
LANGUAGE plpgsql
AS $$
BEGIN
ASSERT false, 'bad thing';
END;
$$;
--
-- Name: problem(); Type: FUNCTION; Schema: test; Owner: -
--