Fix the bug

This commit is contained in:
Nikita Volkov 2016-01-24 19:52:33 +03:00
parent b38a881b50
commit 24e31161c7

View File

@ -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 ::