mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-28 04:57:14 +03:00
Fix the bug
This commit is contained in:
parent
b38a881b50
commit
24e31161c7
@ -59,9 +59,14 @@ initConnection c =
|
||||
|
||||
{-# INLINE getResults #-}
|
||||
getResults :: LibPQ.Connection -> Bool -> ResultsDecoders.Results a -> IO (Either ResultsDecoders.Error a)
|
||||
getResults connection integerDatetimes des =
|
||||
getResults connection integerDatetimes decoder =
|
||||
{-# SCC "getResults" #-}
|
||||
ResultsDecoders.run (des <* ResultsDecoders.dropRemainders) (integerDatetimes, connection)
|
||||
(<*) <$> get <*> dropRemainders
|
||||
where
|
||||
get =
|
||||
ResultsDecoders.run decoder (integerDatetimes, connection)
|
||||
dropRemainders =
|
||||
ResultsDecoders.run ResultsDecoders.dropRemainders (integerDatetimes, connection)
|
||||
|
||||
{-# INLINE getPreparedStatementKey #-}
|
||||
getPreparedStatementKey ::
|
||||
|
Loading…
Reference in New Issue
Block a user