From:             
Operating system: Ubuntu 12.04
PHP version:      5.3.10
Package:          PostgreSQL related
Bug Type:         Bug
Bug description:Does not behave as expected when NOTICE issued

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 bug report at https://bugs.php.net/bug.php?id=61805&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61805&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61805&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61805&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61805&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61805&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61805&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61805&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61805&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61805&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61805&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61805&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61805&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61805&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61805&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61805&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61805&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61805&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61805&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61805&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61805&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61805&r=mysqlcfg

Reply via email to