Req #51228 [Opn->Wfx]: pg_query_params doesn't accept arrays
| From: | yohgaki@php.net | Date: | Sat, 31 Mar 2012 05:57:14 +0000 |
| Subject: | Req #51228 [Opn->Wfx]: pg_query_params doesn't accept arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169075@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51228&edit=1
ID: 51228
Updated by: yohgaki@php.net
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