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:
committed by
Remo
co-authored by
Dmitry Wagin
parent
81f9bf290c
commit
4fb0d1279c
Vendored
+9
@@ -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: -
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user