pq_result_statusΒΆ
pq_result_status returns the status of an SQL command
-
status = pq_result_status(res)
Return Value
status is one of the following values:
PGRES_EMPTY_QUERY (0) | |
PGRES_COMMAND_OK (1) | |
PGRES_TUPLES_OK (2) | |
PGRES_COPY_OUT (3) | |
PGRES_COPY_IN (4) | |
PGRES_BAD_RESPONSE (5) | |
PGRES_NONFATAL_ERROR (6) | |
PGRES_FATAL_ERROR (7) |
Parameters
-
res
res is the res pointer returned by pq_exec.
History
Version | Description |
---|---|
5.5.0 | New |
See also
id-1916841