X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=pq%2FResult.md;h=50e3138581cbb52a100bb2b39c8a8ecd8620cd74;hb=ef536cc45c02b41008edce2ce91ef3440cb0cc21;hp=f6df242f729789be6949891db2c074c98187a81e;hpb=0d07511cf483eff38a9f87e09ba3562740468df8;p=mdref%2Fmdref-pq diff --git a/pq/Result.md b/pq/Result.md index f6df242..50e3138 100644 --- a/pq/Result.md +++ b/pq/Result.md @@ -2,7 +2,7 @@ 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: @@ -17,9 +17,11 @@ See [Fetching Results](pq/Result: Fetching Results) for a general overview. * SINGLE_TUPLE The result contains a single row of the result set when using pq\Connection::$unbuffered. * COPY_OUT - COPY data can be recevied from the server. + COPY data can be received from the server. * COPY_IN COPY data can be sent to the server. +* COPY_BOTH + COPY in/out data transfer in progress. * BAD_RESPONSE The server sent a bad response. * NONFATAL_ERROR @@ -42,7 +44,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 @@ -62,7 +64,7 @@ See [Fetching Results](pq/Result: Fetching Results) for a general overview. * public (readonly) int $status A [status constant](pq/Result#Status.values:). * public (readonly) string $statusMessage - The accompanying status messsage. + The accompanying status message. * public (readonly) string $errorMessage Any error message if $status indicates an error. * public (readonly) int $numRows @@ -71,7 +73,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.