Req #51228 [Wfx]: pg_query_params doesn't accept arrays

From: Date: Sat, 31 Mar 2012 07:38:52 +0000
Subject: Req #51228 [Wfx]: pg_query_params doesn't accept arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169085@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 User updated by: tjibbe at hotmail dot com Reported by: tjibbe at hotmail dot com Summary: pg_query_params doesn't accept arrays Status: Wont fix Type: Feature/Change Request Package: PostgreSQL related Operating System: windows PHP Version: 5.3.2 Assigned To: yohgaki Block user comment: N Private report: N New Comment: no, just an array http://www.postgresql.org/docs/8.4/static/arrays.html. Previous Comments: ------------------------------------------------------------------------ [2012-03-31 05:57:14] yohgaki@php.net Do you mean insert 2 or more rows with single statements? Interesting idea, though. ------------------------------------------------------------------------ [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

« previous php.bugs (#169085) next »