Skip to content

Commit a353cdd

Browse files
committed
More uninterruptible queries
1 parent 8b4562c commit a353cdd

File tree

1 file changed

+2
-2
lines changed
  • src/Database/PostgreSQL/PQTypes/Internal

1 file changed

+2
-2
lines changed

src/Database/PostgreSQL/PQTypes/Internal/State.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ withConnection ConnectionData {..} action = do
181181
(putConnection cdConnectionSource)
182182
( \(conn, _cdata) ->
183183
bracket_
184-
(liftBase $ runQueryIO @SQL conn "BEGIN READ ONLY")
185-
(liftBase $ runQueryIO @SQL conn "ROLLBACK")
184+
(liftBase . uninterruptibleMask_ $ runQueryIO @SQL conn "BEGIN READ ONLY")
185+
(liftBase . uninterruptibleMask_ $ runQueryIO @SQL conn "ROLLBACK")
186186
(action conn)
187187
)
188188
Acquired _ _ conn _ -> action conn

0 commit comments

Comments
 (0)