note 3318 deleted from function.pg-exec by yohgaki
| From: | yohgaki@php.net | Date: | Fri, 07 Dec 2001 12:10:12 +0000 |
| Subject: | note 3318 deleted from function.pg-exec by yohgaki | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21865@lists.php.net to get a copy of this message | ||
I suppose pg_GetLastOid() returns a zero value when you want to insert a duplicate key. So checking
should be the following:
<pre>if (!pg_GetLastOid($result) ||
(pg_GetLastOid($result) < 0)) {
code_on_error
else {
code_on_success
}
</pre>