diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml index 21a12dced8..789e2eded3 100644 --- a/reference/pgsql/constants.xml +++ b/reference/pgsql/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -424,6 +424,30 @@ + + + PGSQL_STATUS_LONG + (integer) + + + + + + + + + + PGSQL_STATUS_STRING + (integer) + + + + + + + + +
diff --git a/reference/pgsql/functions/pg-result-status.xml b/reference/pgsql/functions/pg-result-status.xml index 63bc235fc3..54a1a7a1ad 100644 --- a/reference/pgsql/functions/pg-result-status.xml +++ b/reference/pgsql/functions/pg-result-status.xml @@ -1,5 +1,5 @@ - + @@ -12,15 +12,27 @@ &reftitle.description; - intpg_result_status + mixedpg_result_status resourceresult + inttype pg_result_status returns status of result - resource. Possible return values are PGSQL_EMPTY_QUERY, - PGSQL_COMMAND_OK, PGSQL_TUPLES_OK, PGSQL_COPY_TO, - PGSQL_COPY_FROM, PGSQL_BAD_RESPONSE, PGSQL_NONFATAL_ERROR and - PGSQL_FATAL_ERROR. + resource, or the command tag associated with the result. Possible values + of type are PGSQL_STATUS_LONG + or PGSQL_STATUS_STRING. The default is + PGSQL_STATUS_LONG. + + + Possible return values are PGSQL_EMPTY_QUERY, + PGSQL_COMMAND_OK, PGSQL_TUPLES_OK, PGSQL_COPY_TO, + PGSQL_COPY_FROM, PGSQL_BAD_RESPONSE, PGSQL_NONFATAL_ERROR and + PGSQL_FATAL_ERROR if PGSQL_STATUS_LONG is + specified. + + + When PGSQL_STATUS_STRING is used, then the returned + value is the command completion tag from PostgreSQL.