hasql-transaction 0.4.2 → 0.4.3
raw patch · 2 files changed
+4/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
hasql-transaction.cabal view
@@ -1,7 +1,7 @@ name: hasql-transaction version:- 0.4.2+ 0.4.3 category: Hasql, Database, PostgreSQL synopsis:
library/Hasql/Transaction.hs view
@@ -57,7 +57,7 @@ deriving (Show, Eq, Ord, Enum, Bounded) -- |--- Execute the transaction using the provided isolation level, mode and database connection.+-- Execute the transaction using the provided isolation level and mode. {-# INLINABLE run #-} run :: Transaction a -> IsolationLevel -> Mode -> Session.Session a run (Transaction session) isolation mode =@@ -65,7 +65,8 @@ Session.query () (Queries.beginTransaction mode') resultEither <- tryError session case resultEither of- Left error ->+ Left error -> do+ Session.query () Queries.abortTransaction case error of Session.ResultError (Session.ServerError code _ _ _) | code == ErrorCodes.serialization_failure -> run (Transaction session) isolation mode