RPC POST for function w/single unnamed XML param

This commit is contained in:
Franz-Josef Färber
2022-06-03 11:52:57 -05:00
committed by Steve Chavez
parent d14f745406
commit 807364bd7b
6 changed files with 48 additions and 3 deletions
+1
View File
@@ -148,6 +148,7 @@ instance JSON.ToJSON ApiRequestError where
(case (hasPreferSingleObject, isInvPost, contentType) of
(True, _, _) -> " function with a single json or jsonb parameter"
(_, True, CTTextPlain) -> " function with a single unnamed text parameter"
(_, True, CTTextXML) -> " function with a single unnamed xml parameter"
(_, True, CTOctetStream) -> " function with a single unnamed bytea parameter"
(_, True, CTApplicationJSON) -> prms <> " function or the " <> schema <> "." <> procName <>" function with a single unnamed json or jsonb parameter"
_ -> prms <> " function") <>