Edit report at https://bugs.php.net/bug.php?id=61805&edit=1

 ID:                 61805
 User updated by:    keiouu at gmail dot com
 Reported by:        keiouu at gmail dot com
 Summary:            Does not behave as expected when NOTICE issued
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            PostgreSQL related
 Operating System:   Ubuntu 12.04
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

It was an issue with my setup, one worker hadnt been restarted to get the new 
configuration.


Previous Comments:
------------------------------------------------------------------------
[2012-04-22 00:28:31] keiouu at gmail dot com

Description:
------------
Hello,

I have the following script:

pg_query("DROP SEQUENCE IF EXISTS test_seq;");

Have also tried:

pg_query('DROP SEQUENCE IF EXISTS "test_seq";');

Both issue warnings:

E_WARNING: pg_query(): Query failed: ERROR:  relation "test_seq" does not exist 
in /home/keiouu/tikapot/framework/databases/postgres.php on line 64
Exception 1!


Which would be fine but I have set:

pgsql.ignore_notice = 1


A phpinfo confirmed that it is set.

As there is no easy way of seeing if a sequence exists (that I know of) I don't 
believe any warning should be issued.

Test script:
---------------
pg_query("DROP SEQUENCE IF EXISTS test_seq;");

Expected result:
----------------
Nothing

Actual result:
--------------
E_WARNING: pg_query(): Query failed: ERROR:  relation "test_seq" does not exist 
in /home/keiouu/tikapot/framework/databases/postgres.php on line 64
Exception 1!


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61805&edit=1

Reply via email to