Add handling of empty query response

This commit is contained in:
Nikita Volkov 2022-07-20 22:12:13 +03:00
parent 9276d7e298
commit 55a4564abc

View File

@ -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 #-}