persistent-postgresql 2.1.5.3 → 2.1.6
raw patch · 3 files changed
+6/−6 lines, 3 files
Files
- ChangeLog.md +4/−0
- Database/Persist/Postgresql.hs +1/−5
- persistent-postgresql.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 2.1.6++* Postgresql exceptions [#353](https://github.com/yesodweb/persistent/issues/353)+ ## 2.1.5.3 Migrations for custom primary keys
Database/Persist/Postgresql.hs view
@@ -218,11 +218,7 @@ status <- LibPQ.resultStatus ret case status of LibPQ.TuplesOk -> return ()- _ -> do- msg <- LibPQ.resStatus status- mmsg <- LibPQ.resultErrorMessage ret- fail $ "Postgresql.withStmt': bad result status " ++- show status ++ " (" ++ maybe (show msg) (show . (,) msg) mmsg ++ ")"+ _ -> PG.throwResultError "Postgresql.withStmt': bad result status " ret status -- Get number and type of columns cols <- LibPQ.nfields ret
persistent-postgresql.cabal view
@@ -1,5 +1,5 @@ name: persistent-postgresql-version: 2.1.5.3+version: 2.1.6 license: MIT license-file: LICENSE author: Felipe Lessa, Michael Snoyman <michael@snoyman.com>