Merge pull request #1636 from yesodweb/1635-use-get-stmt-conn
Replace call to connPrepare with getStmtConn (fixes #1635)
This commit is contained in:
commit
6d21107549
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user