Skip to content

Commit 485341c

Browse files
authored
Merge pull request #2 from bergey/docs
match documentation to upstream C library
2 parents 4224b7d + f0cb7f1 commit 485341c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Database/PostgreSQL/LibPQ.hsc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
10501050
resultErrorMessage :: Result
10511051
-> IO (Maybe B.ByteString)
10521052
resultErrorMessage = 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.)
12091209
ntuples :: Result
12101210
-> IO Row
12111211
ntuples res = withResult res (return . toRow . c_PQntuples)

0 commit comments

Comments
 (0)