X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=pq%2FResult.md;h=9ad6238d0dc27106124b8ef114c017488a2f94cf;hb=ed227d1dd7a45c1e44e896ad9291fa1e12cfab06;hp=a6f3f8a8d227edab22d8d78c19804746a434a295;hpb=3efe3efd58029b243ca6fd45a4ce0cf2826d1d5a;p=mdref%2Fmdref-pq diff --git a/pq/Result.md b/pq/Result.md index a6f3f8a..9ad6238 100644 --- a/pq/Result.md +++ b/pq/Result.md @@ -1,8 +1,8 @@ -# class pq\Result implements \Traversable, \Countable +# class pq\Result implements Traversable, Countable A query result. -See [Fetching Results](pq/Result: Fetching Results) for a general overview. +See [Fetching Results](pq/Result/: Fetching Results) for a general overview. ## Constants: @@ -42,7 +42,7 @@ See [Fetching Results](pq/Result: Fetching Results) for a general overview. * CONV_BOOL Automatically convert 'f' and 't' to FALSE and TRUE and vice versa. * CONV_INT - Automatically convert integral strings to either int if it fits into maximum integer size and vice versa. + Automatically convert integral strings to either int if it fits into maximum integer size or else to float and vice versa. * CONV_FLOAT Automatically convert floating point numbers. * CONV_SCALAR @@ -71,7 +71,9 @@ See [Fetching Results](pq/Result: Fetching Results) for a general overview. The number of fields in a single tuple of the result set. * public (readonly) int $affectedRows The number of rows affected by a statement. +* public (readonly) array $diag + Error details. See [PQresultErrorField](https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD) docs. * public int $fetchType = pq\Result::FETCH_ARRAY The [type of return value](pq/Result#Fetch.types:) the fetch methods should return when no fetch type argument was given. Defaults to pq\Connection::$defaultFetchType. * public int $autoConvert = pq\Result::CONV_ALL - What [type of conversions](pq\Result#Conversion.bits:) to perform automatically. + What [type of conversions](pq/Result#Conversion.bits:) to perform automatically.