We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ntuples
1 parent 3903ee6 commit f0cb7f1Copy full SHA for f0cb7f1
src/Database/PostgreSQL/LibPQ.hsc
@@ -1203,9 +1203,9 @@ resultErrorField (Result fp) fieldcode =
1203
-- values, these functions will act as though the result has zero rows
1204
-- and zero columns.
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.
+-- | Returns the number of rows (tuples) in the query result. (Note
+-- that PGresult objects are limited to no more than INT_MAX rows, so
+-- an int result is sufficient.)
1209
ntuples :: Result
1210
-> IO Row
1211
ntuples res = withResult res (return . toRow . c_PQntuples)
0 commit comments