If errmsg> is not NULL>, then *errmsg> is set
to NULL> on success, else to a malloc>'d error string explaining
the problem. (It is also possible for *errmsg> to be
- set to NULL> even when NULL> is returned; this indicates an out-of-memory
- situation.)
+ set to NULL> and the function to return NULL>;
+ this indicates an out-of-memory condition.)
See the entry for PQconnectStartParams>, PQconnectStart>
and PQconnectPoll> with regards to other status codes that
- might be seen.
+ might be returned.
- Returns a string with the OID of the inserted row, if the
-
SQL command was an
INSERT
- that inserted exactly one row, or a EXECUTE of
- a prepared statement consisting of a suitable
- INSERT. (The string will be 0> if
- the INSERT did not insert exactly one row, or
- if the target table does not have OIDs.) If the command was not
- an INSERT, returns an empty string.
+ This function is deprecated in favor of
+ PQoidValue and is not thread-safe.
+ It returns a string with the OID of the inserted row, while
+ PQoidValue returns the OID value.
char *PQoidStatus(const PGresult *res);
- This function is deprecated in favor of
- PQoidValue. It is not thread-safe.
-