Derp, actually put the data on a put request

This commit is contained in:
Joe Nelson
2014-11-06 18:31:13 -08:00
parent ffa2870061
commit 76ea92bfce
5 changed files with 73 additions and 18 deletions
+2 -2
View File
@@ -191,8 +191,8 @@ upsert :: Schema -> Text -> SqlRow -> Net.Query -> Connection -> IO (M.Map Strin
upsert schema table row qq conn = do
stmt <- prepare conn $ cs sql
_ <- execute stmt $ join $ replicate 2 $ sqlRowValues row
Just m <- fetchRowMap stmt
return m
m <- fetchRowMap stmt
return $ fromMaybe M.empty m
where sql = upsertClause schema table row qq