php.net |  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
Votes:5
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-03-07 17:39 UTC] 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')));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-31 05:57 UTC] yohgaki@php.net
Do you mean insert 2 or more rows with single statements?
Interesting idea, though.
 [2012-03-31 05:57 UTC] yohgaki@php.net
-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

http://www.postgresql.org/docs/8.4/static/arrays.html.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 02:01:23 2020 UTC