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

 ID:                 51228
 Updated by:         [email protected]
 Reported by:        tjibbe at hotmail dot com
 Summary:            pg_query_params doesn't accept arrays
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            PostgreSQL related
 Operating System:   windows
 PHP Version:        5.3.2
-Assigned To:        
+Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Do you mean insert 2 or more rows with single statements?
Interesting idea, though.


Previous Comments:
------------------------------------------------------------------------
[2010-03-07 17:39:24] tjibbe at hotmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=51228&edit=1

Reply via email to