pg_getlastoid: according to the source, it returns false for invalid oids

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64249 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
jim winstead 2001-12-07 21:32:40 +00:00
parent a8467d973a
commit 54067bc5dd

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.49 $ -->
<!-- $Revision: 1.50 $ -->
<reference id="ref.pgsql">
<title>PostgreSQL functions</title>
<titleabbrev>PostgreSQL</titleabbrev>
@ -785,13 +785,12 @@ for ($i=0; $i < $num; $i++) {
</funcsynopsis>
<para>
<function>pg_getlastoid</function> can be used to retrieve the
<varname>oid</varname> assigned to an inserted tuple if the
result identifier is used from the last command sent via
<function>pg_exec</function> and was an SQL INSERT. This
function will return a positive integer if there was a valid
<varname>oid</varname>. It will return -1 if an error occured or
the last command sent via <function>pg_exec</function> was not an
INSERT.
<varname>oid</varname> assigned to an inserted tuple if the result
identifier is used from the last command sent via
<function>pg_exec</function> and was an SQL INSERT. Returns a positive
integer if there was a valid <varname>oid</varname>. It returns &false;
if an error occurs or the last command sent via
<function>pg_exec</function> was not an INSERT.
</para>
</refsect1>
</refentry>