test: getRequestFromFunction

This commit is contained in:
2019-06-14 09:04:46 +02:00
parent 2d494d6e3e
commit baa2976e80
4 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
CREATE OR REPLACE FUNCTION test_function (name text, IN hi text default 'hello', out result json)
LANGUAGE plpgsql
AS
$$
BEGIN
result = json_build_object('id', 2, 'name', 'test');
END;
$$