packages feed

hasql-transaction 0.5 → 0.5.1

raw patch · 2 files changed

+7/−2 lines, 2 filesdep ~hasqlPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hasql

API changes (from Hackage documentation)

Files

hasql-transaction.cabal view
@@ -1,7 +1,7 @@ name:   hasql-transaction version:-  0.5+  0.5.1 category:   Hasql, Database, PostgreSQL synopsis:@@ -53,7 +53,7 @@     Hasql.Transaction.Sessions   build-depends:     -- database:-    hasql >= 0.17 && < 0.20,+    hasql >= 0.17 && < 0.20 || >= 1 && < 1.1,     -- data:     bytestring-tree-builder >= 0.1 && < 0.3,     bytestring >= 0.10 && < 0.11,
library/Hasql/Transaction/Private/Sessions.hs view
@@ -7,6 +7,11 @@ import qualified Hasql.Transaction.Private.Queries as B  +{-+We may want to+do one transaction retry in case of the 23505 error, and fail if an identical+error is seen.+-} inRetryingTransaction :: IsolationLevel -> Mode -> A.Session (a, Bool) -> A.Session a inRetryingTransaction isolation mode session =   fix $ \recur -> catchError normal (onError recur)