Nest response JSON more shallowly

This commit is contained in:
Joe Nelson
2015-08-20 22:14:08 -07:00
parent cf04fbd6ea
commit 28f771324d
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ update t cols vals = B.Stmt
callProc :: QualifiedIdentifier -> JSON.Object -> PStmt
callProc qi params = do
let args = T.intercalate "," $ map assignment (H.toList params)
B.Stmt ("select " <> fromQi qi <> "(" <> args <> ")") empty True
B.Stmt ("select * from " <> fromQi qi <> "(" <> args <> ")") empty True
where
assignment (n,v) = pgFmtIdent n <> ":=" <> insertableValue v