From 135dea6322ef925234c2fe9224536185b5cfcc46 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Aug 2001 22:50:10 +0000 Subject: Since PQoidStatus is deprecated, we should probably stop using it in our own code ... --- doc/src/sgml/libpq.sgml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 7e16dee59a1..edda51533fe 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -1073,8 +1073,9 @@ char * PQcmdTuples(const PGresult *res); PQoidValue - Returns the object id of the tuple - inserted, if the SQL command was an INSERT. + Returns the object id of the tuple inserted, if the + SQL command was an INSERT + that inserted exactly one row into a table that has OIDs. Otherwise, returns InvalidOid. Oid PQoidValue(const PGresult *res); @@ -1088,9 +1089,11 @@ Oid PQoidValue(const PGresult *res); PQoidStatus - Returns a string with the object id of the tuple - inserted, if the SQL command was an INSERT. - Otherwise, returns an empty string. + Returns a string with the object id of the tuple inserted, if the + SQL command was an 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. char * PQoidStatus(const PGresult *res); -- cgit v1.2.3