diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 22:50:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 22:50:10 +0000 |
commit | 135dea6322ef925234c2fe9224536185b5cfcc46 (patch) | |
tree | 3a5aefe767c6879c60dcf193eb048e9d96d9cddc /doc/src | |
parent | 633b5d5653d360bb6acbbc2f142f04a90372e32c (diff) | |
download | postgresql-135dea6322ef925234c2fe9224536185b5cfcc46.tar.gz postgresql-135dea6322ef925234c2fe9224536185b5cfcc46.zip |
Since PQoidStatus is deprecated, we should probably stop using it in
our own code ...
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 15 |
1 files changed, 9 insertions, 6 deletions
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 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.65 2001/08/10 14:42:47 momjian Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.66 2001/08/10 22:50:09 tgl Exp $ --> <chapter id="libpq"> @@ -1073,8 +1073,9 @@ char * PQcmdTuples(const PGresult *res); <listitem> <para> <function>PQoidValue</function> - Returns the object id of the tuple - inserted, if the <acronym>SQL</acronym> command was an INSERT. + Returns the object id of the tuple inserted, if the + <acronym>SQL</acronym> command was an INSERT + that inserted exactly one row into a table that has OIDs. Otherwise, returns <literal>InvalidOid</literal>. <synopsis> Oid PQoidValue(const PGresult *res); @@ -1088,9 +1089,11 @@ Oid PQoidValue(const PGresult *res); <listitem> <para> <function>PQoidStatus</function> - Returns a string with the object id of the tuple - inserted, if the <acronym>SQL</acronym> command was an INSERT. - Otherwise, returns an empty string. + Returns a string with the object id of the tuple inserted, if the + <acronym>SQL</acronym> 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. <synopsis> char * PQoidStatus(const PGresult *res); </synopsis> |