|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51228 pg_query_params doesn't accept arrays
Submitted: 2010-03-07 17:39 UTC Modified: 2012-03-31 07:38 UTC
Avg. Score:4.0 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: tjibbe at hotmail dot com Assigned: yohgaki (profile)
Status: Wont fix Package: PostgreSQL related
PHP Version: 5.3.2 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tjibbe at hotmail dot com
New email:
PHP Version: OS:


 [2010-03-07 17:39 UTC] tjibbe at hotmail dot com
pg_query_params doesn't accept arrays

Test script:
 id serial,
 data text[]

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

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-31 05:57 UTC]
Do you mean insert 2 or more rows with single statements?
Interesting idea, though.
 [2012-03-31 05:57 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: yohgaki
 [2012-03-31 07:38 UTC] tjibbe at hotmail dot com
no, just an array
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 28 21:03:37 2021 UTC