We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4562c commit a353cddCopy full SHA for a353cdd
src/Database/PostgreSQL/PQTypes/Internal/State.hs
@@ -181,8 +181,8 @@ withConnection ConnectionData {..} action = do
181
(putConnection cdConnectionSource)
182
( \(conn, _cdata) ->
183
bracket_
184
- (liftBase $ runQueryIO @SQL conn "BEGIN READ ONLY")
185
- (liftBase $ runQueryIO @SQL conn "ROLLBACK")
+ (liftBase . uninterruptibleMask_ $ runQueryIO @SQL conn "BEGIN READ ONLY")
+ (liftBase . uninterruptibleMask_ $ runQueryIO @SQL conn "ROLLBACK")
186
(action conn)
187
)
188
Acquired _ _ conn _ -> action conn
0 commit comments