Use a mime type to request singular JSON responses (#763)
This commit is contained in:
Vendored
+6
@@ -1091,6 +1091,12 @@ CREATE FUNCTION getallprojects() RETURNS SETOF projects
|
||||
SELECT * FROM test.projects;
|
||||
$_$;
|
||||
|
||||
CREATE FUNCTION setprojects(id_l int, id_h int, name text) RETURNS SETOF projects
|
||||
LANGUAGE sql
|
||||
AS $_$
|
||||
update test.projects set name = $3 WHERE id >= $1 AND id <= $2 returning *;
|
||||
$_$;
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user