Add handling of EmptyQuery status

This commit is contained in:
Nikita Volkov 2022-07-20 22:37:31 +03:00
parent cf6458fe76
commit fab38ac101

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