From 54067bc5dd5f32ba2a97b67ce814a0f79495ee27 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Fri, 7 Dec 2001 21:32:40 +0000 Subject: [PATCH] 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 --- functions/pgsql.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/functions/pgsql.xml b/functions/pgsql.xml index af46937b71..6bfe39bad7 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -785,13 +785,12 @@ for ($i=0; $i < $num; $i++) { pg_getlastoid can be used to retrieve the - oid assigned to an inserted tuple if the - result identifier is used from the last command sent via - pg_exec and was an SQL INSERT. This - function will return a positive integer if there was a valid - oid. It will return -1 if an error occured or - the last command sent via pg_exec was not an - INSERT. + oid assigned to an inserted tuple if the result + identifier is used from the last command sent via + pg_exec and was an SQL INSERT. Returns a positive + integer if there was a valid oid. It returns &false; + if an error occurs or the last command sent via + pg_exec was not an INSERT.