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 =
1045
1045
return $ B. fromForeignPtr fp 0 $ fromIntegral len
1046
1046
1047
1047
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 .
1050
1050
resultErrorMessage :: Result
1051
1051
-> IO (Maybe B. ByteString )
1052
1052
resultErrorMessage = flip maybeBsFromResult c_PQresultErrorMessage
@@ -1203,9 +1203,9 @@ resultErrorField (Result fp) fieldcode =
1203
1203
-- values, these functions will act as though the result has zero rows
1204
1204
-- and zero columns.
1205
1205
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.)
1209
1209
ntuples :: Result
1210
1210
-> IO Row
1211
1211
ntuples res = withResult res (return . toRow . c_PQntuples)
You can’t perform that action at this time.
0 commit comments