mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-26 20:12:09 +03:00
Add handling of empty query response
This commit is contained in:
parent
9276d7e298
commit
55a4564abc
@ -63,6 +63,7 @@ checkExecStatus predicate =
|
||||
LibPQ.BadResponse -> serverError
|
||||
LibPQ.NonfatalError -> serverError
|
||||
LibPQ.FatalError -> serverError
|
||||
LibPQ.EmptyQuery -> return ()
|
||||
_ -> Result $ lift $ ExceptT $ pure $ Left $ UnexpectedResult $ "Unexpected result status: " <> (fromString $ show status)
|
||||
|
||||
{-# INLINE serverError #-}
|
||||
|
Loading…
Reference in New Issue
Block a user