#42933 [Opn->Bgs]: pg_query warning doesn't catches
| From: | iliaa@php.net | Date: | Thu, 11 Oct 2007 18:22:32 +0000 |
| Subject: | #42933 [Opn->Bgs]: pg_query warning doesn't catches | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118423@lists.php.net to get a copy of this message | ||
ID: 42933
Updated by: iliaa@php.net
Reported By: f dot fenix at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PostgreSQL related
Operating System: FreeBSD 6.2
PHP Version: 5.2.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PostgreSQL extension does not use Exceptions.
Previous Comments:
------------------------------------------------------------------------
[2007-10-11 18:10:47] f dot fenix at gmail dot com
Description:
------------
If in PostgreSQL stored function I make raise exception, when I call it
by pg_query, I have PHP WARNING. But try-catch block doesn't work.
Reproduce code:
---------------
try
{
$this->resultID = pg_query($this->connectID, $this->query);
}
catch (Exception $e)
{
$this->dieDB($e);
}
Expected result:
----------------
Catched exception in var $e
Actual result:
--------------
Warning: pg_query(): Query failed: ERROR: PASSWORD_WRONG#users# in
/xxx/dbi.class.php on line 175.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42933&edit=1