From:             Marco_de_Wit at wxs dot nl
Operating system: Linux Mandrake 10
PHP version:      4.3.4
PHP Bug Type:     PostgreSQL related
Bug description:  tablenames not double quoted

Description:
------------
if I make a table with a name like 'user' or 'order', any use with it in
SQL should be double quoted for instance:



SELECT * FROM "user";



But pg_insert doesn't do this:

pg_insert($connection,'user',$fields);

will result in an error showing the tablename 'user' not between double
quotes.



Reproduce code:
---------------
pg_insert($connection,'user',$fields);

Actual result:
--------------
[Fri Apr 16 11:29:34 2004] [error] PHP Notice:  pg_insert(): Failed to
execute 'INSERT INTO user (name,username,password,email,region,number)
VALUES ('','','','','',1);'. in
/var/www/skileurope.com/displayshop/kernel.php on line 90



-- 
Edit bug report at http://bugs.php.net/?id=28020&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28020&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28020&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28020&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28020&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28020&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28020&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28020&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28020&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28020&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28020&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28020&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28020&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28020&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28020&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28020&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28020&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28020&r=float

Reply via email to