Re: pg_prepare()/pg_execute() and pg_query_params()
| From: | Brandon Metcalf | Date: | Tue, 26 May 2009 19:02:25 +0000 |
| Subject: | Re: pg_prepare()/pg_execute() and pg_query_params() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46202@lists.php.net to get a copy of this message | ||
b == brandon@geronimoalloys.com writes:
b> I'm fairly new to PHP but have a great deal of Perl experience for
b> what it's worth. I'm having a problem where if I try to use a
b> parameterized query it fails but pg_last_error() returns nothing. For
b> example,
b> $result = pg_query_params($pgconn, $update, array($foo, $bar));
b> if (! $result) {
b> fwrite($fp, "before");
b> fwrite($fp, pg_last_error());
b> fwrite($fp, "after");
b> }
I should also mentioned with
log_statement = 'all'
in postgresql.conf, nothing is dumped to the logs. This tells me
pg_query_params() isn't passing anything to the postgres server.
--
Brandon