@@ -202,7 +202,6 @@ getCopyCommandTag funcName pqconn = do
202 result <- maybe (fail errCmdStatus) return =<< PQ.getResult pqconn
202 result <- maybe (fail errCmdStatus) return =<< PQ.getResult pqconn
203 cmdStat <- maybe (fail errCmdStatus) return =<< PQ.cmdStatus result
203 cmdStat <- maybe (fail errCmdStatus) return =<< PQ.cmdStatus result
204 let rowCount = P.string "COPY " *> (P.decimal <* P.endOfInput)
204 let rowCount = P.string "COPY " *> (P.decimal <* P.endOfInput)
205− <|> (P.endOfInput *> pure 0)
206 case P.parseOnly rowCount cmdStat of
205 case P.parseOnly rowCount cmdStat of
207 Left _ -> fail errCmdStatusFmt
206 Left _ -> fail errCmdStatusFmt
208 Right n -> return $! n
207 Right n -> return $! n