diff --git a/yesod-auth/yesod-auth.cabal b/yesod-auth/yesod-auth.cabal index 22298eb7..120950cc 100644 --- a/yesod-auth/yesod-auth.cabal +++ b/yesod-auth/yesod-auth.cabal @@ -1,5 +1,5 @@ name: yesod-auth -version: 1.6.3 +version: 1.6.4 license: MIT license-file: LICENSE author: Michael Snoyman, Patrick Brisbin diff --git a/yesod-persistent/Yesod/Persist/Core.hs b/yesod-persistent/Yesod/Persist/Core.hs index 6e81d848..6b9d58d7 100644 --- a/yesod-persistent/Yesod/Persist/Core.hs +++ b/yesod-persistent/Yesod/Persist/Core.hs @@ -98,7 +98,11 @@ defaultGetDBRunner getPool = do (relKey, (conn, local)) <- allocate (do (conn, local) <- takeResource pool +#if MIN_VERSION_persistent(2,9,0) + withPrep conn (\c f -> SQL.connBegin c f Nothing) +#else withPrep conn SQL.connBegin +#endif return (conn, local) ) (\(conn, local) -> do diff --git a/yesod-persistent/yesod-persistent.cabal b/yesod-persistent/yesod-persistent.cabal index daf5ae4b..2af6550a 100644 --- a/yesod-persistent/yesod-persistent.cabal +++ b/yesod-persistent/yesod-persistent.cabal @@ -1,5 +1,5 @@ name: yesod-persistent -version: 1.6.0 +version: 1.6.1 license: MIT license-file: LICENSE author: Michael Snoyman @@ -16,7 +16,7 @@ extra-source-files: README.md ChangeLog.md library build-depends: base >= 4 && < 5 , yesod-core >= 1.6 && < 1.7 - , persistent >= 2.8 && < 2.9 + , persistent >= 2.8 && < 2.10 , persistent-template >= 2.1 && < 2.8 , transformers >= 0.2.2 , blaze-builder