diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-11-08 04:56:40 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-11-08 04:56:40 +0000 |
commit | 02608cbce6dce130d2987e6ffc29cf25a9987c6d (patch) | |
tree | acb60d1d0e042b55cff14042f9850f4113e8b6ae | |
parent | 476eb59f509920fe7bb40dbc93240e8994f9624a (diff) | |
download | postgresql-02608cbce6dce130d2987e6ffc29cf25a9987c6d.tar.gz postgresql-02608cbce6dce130d2987e6ffc29cf25a9987c6d.zip |
I'm using libpgtcl with PostgreSQL-7.2.3. There is a discrepancy between
the documentation and behavior of "pg_result $res -oid" when $res is not
from an INSERT. The documentation says it should return an empty
string, but in fact it returns 0. I think it used to return an empty
string around PostgreSQL-7.1.3 when PQoidStatus() was used, but now it
uses PQoidValue() which returns InvalidOid, 0 in this case.
Assuming the current behavior is desired, here is a patch to the
documentation doc/src/sgml/libpgtcl.sgml to match what really happens:
ljb
-rw-r--r-- | doc/src/sgml/libpgtcl.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/libpgtcl.sgml b/doc/src/sgml/libpgtcl.sgml index 6ff9e6bebcf..df0c8b641a4 100644 --- a/doc/src/sgml/libpgtcl.sgml +++ b/doc/src/sgml/libpgtcl.sgml @@ -712,7 +712,7 @@ the connection that produced the result. <LISTITEM> <PARA> if the command was an INSERT, the OID of the -inserted tuple; otherwise an empty string. +inserted tuple; otherwise 0. </PARA> </LISTITEM> </VARLISTENTRY> |