Re: PEAR DB traces
| From: | Adam Harvey | Date: | Mon, 02 Apr 2007 09:01:54 +0000 |
| Subject: | Re: PEAR DB traces | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26972@lists.php.net to get a copy of this message | ||
Quoting Kevin McCarthy <kemccarthy1@gmail.com>:
Thanks. However the call fails account of not finding it defined anywhere. Indeed looking at the included libraries for DB using Postgres I cannot find the definition either. Is it a recent addition to the PEAR distribution?It's defined in DB_common (and has been since the first version of DB), so it's there for all DB drivers. Trivial example: $db->query('SELECT foo FROM bar WHERE id = ?', array(42)); echo $db->last_query; That should print "SELECT foo FROM bar WHERE id = 42" to stdout. If that doesn't work, then something very odd is happening. Adam -- Adam Harvey PEAR Profile: <http://pear.php.net/user/aharvey> Blog: <http://xn--9bi.net/>