note 54612 deleted from function.pg-last-error by nlopess

From: Date: Wed, 30 Nov 2005 18:52:36 +0000
Subject: note 54612 deleted from function.pg-last-error by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-99379@lists.php.net to get a copy of this message
Note Submitter: rory at campbell-lange dot net ---- We use the following code to check for pg function errors for postgres 7.4.x: $this->status = pg_result_status($this->conn ); ... if (($this->status == 5 or $this->status == 7)) { $this->error = 1; $this->error_msg = pg_last_error($this->conn); } As intimated in the docs, the result codes are somewhat mysterious. However these two integers appear to cover most of the error cases.

« previous php.notes (#99379) next »