note 62675 added to function.pg-prepare
| From: | scott dot marlowe at gmail dot com | Date: | Tue, 07 Mar 2006 03:20:32 +0000 |
| Subject: | note 62675 added to function.pg-prepare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104958@lists.php.net to get a copy of this message | ||
Note that if you are preparing a query with an in clause with a list of items, you will need to
prepare each item separately.
$result = pg_prepare($dbconn, "my_query", 'SELECT * FROM shops WHERE name
IN($1,$2,$3)');
$result = pg_execute($dbconn, "my_query", array("coffee, beer, hard"));
This means that you can't just prepare a query with an arbitrary in() list.
----
Server IP: 66.163.161.117
Probable Submitter: 69.211.230.167
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.pg-prepare.php
Edit -- http://master.php.net/note/edit/62675
Del: integrated -- http://master.php.net/note/delete/62675/integrated
Del: useless -- http://master.php.net/note/delete/62675/useless
Del: bad code -- http://master.php.net/note/delete/62675/bad+code
Del: spam -- http://master.php.net/note/delete/62675/spam
Del: non-english -- http://master.php.net/note/delete/62675/non-english
Del: in docs -- http://master.php.net/note/delete/62675/in+docs
Del: other reasons-- http://master.php.net/note/delete/62675
Reject -- http://master.php.net/note/reject/62675
Search -- http://master.php.net/manage/user-notes.php