Req #51228 [NEW]: pg_query_params doesn't accept arrays

From: Date: Sun, 07 Mar 2010 16:39:25 +0000
Subject: Req #51228 [NEW]: pg_query_params doesn't accept arrays
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148359@lists.php.net to get a copy of this message
From:             
Operating system: windows
PHP version:      5.3.2
Package:          PostgreSQL related
Bug Type:         Feature/Change Request
Bug description:pg_query_params doesn't accept arrays

Description:
------------
pg_query_params doesn't accept arrays

Test script:
---------------
CREATE TABLE test (
 id serial,
 data text[]
);


$query = 'INSERT INTO test(data) VALUES ($1)';


pg_query_params($db, $query, array(array('red','green')));


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



Thread (3 messages)

« previous php.bugs (#148359) next »