File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1045,8 +1045,8 @@ resStatus es =
10451045 return $ B. fromForeignPtr fp 0 $ fromIntegral len
10461046
10471047
1048- -- | Returns the error message most recently generated by an operation
1049- -- on the connection .
1048+ -- | Returns the error message associated with the command, or an
1049+ -- empty string if there was no error .
10501050resultErrorMessage :: Result
10511051 -> IO (Maybe B. ByteString )
10521052resultErrorMessage = flip maybeBsFromResult c_PQresultErrorMessage
@@ -1203,9 +1203,9 @@ resultErrorField (Result fp) fieldcode =
12031203-- values, these functions will act as though the result has zero rows
12041204-- and zero columns.
12051205
1206- -- | Returns the number of rows (tuples) in the query result. Because
1207- -- it returns an integer result, large result sets might overflow the
1208- -- return value on 32-bit operating systems.
1206+ -- | Returns the number of rows (tuples) in the query result. (Note
1207+ -- that PGresult objects are limited to no more than INT_MAX rows, so
1208+ -- an int result is sufficient.)
12091209ntuples :: Result
12101210 -> IO Row
12111211ntuples res = withResult res (return . toRow . c_PQntuples)
You can’t perform that action at this time.
0 commit comments