ID:               42933
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to