Merge pull request #1636 from yesodweb/1635-use-get-stmt-conn

Replace call to connPrepare with getStmtConn (fixes #1635)
This commit is contained in:
Michael Snoyman 2019-10-30 05:49:01 +02:00 committed by GitHub
commit 6d21107549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# ChangeLog for yesod-persistent
## 1.6.0.3
* Replace call to `connPrepare` with `getStmtConn`. [#1635](https://github.com/yesodweb/yesod/issues/1635)
## 1.6.0.2
* Add support for persistent 2.10

View File

@ -103,7 +103,7 @@ defaultGetDBRunner :: YesodPersistBackend site ~ SQL.SqlBackend
#endif
defaultGetDBRunner getPool = do
pool <- fmap getPool getYesod
let withPrep conn f = f (persistBackend conn) (SQL.connPrepare $ persistBackend conn)
let withPrep conn f = f (persistBackend conn) (SQL.getStmtConn $ persistBackend conn)
(relKey, (conn, local)) <- allocate
(do
(conn, local) <- takeResource pool

View File

@ -1,5 +1,5 @@
name: yesod-persistent
version: 1.6.0.2
version: 1.6.0.3
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>