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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tjibbe at hotmail dot com
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Wed Jan 27 20:01:24 2021 UTC