Re: pdo prepare()
| From: | Lukas Smith | Date: | Fri, 30 Sep 2005 14:04:20 +0000 |
| Subject: | Re: pdo prepare() | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3028@lists.php.net to get a copy of this message | ||
Wez Furlong wrote:
It depends on the driver, but in general, when you call a PDO method, the underlying equivalent of that method does happen. You're probably running your code against a driver where PDO emulates the functionality.I tried on mysql (against a version 5 server) and pgsql (against a version 8 server). Both of them should use native prepared queries, or? I downloaded the dlls a few days ago from snaps.php.net.
PDO and its drivers don't necessarily know if prepare is to be emulated until you actually attempt to prepare. Why do you need to know?Well for example on mysql the backend server may or may not support it. Like I said this opens up a bigger topic about how much runtime introspection we support. This may be important to know in order to better understand the performance implications of operations which in turn might lead you to do things different. Maybe you just want to collect the information. regards, Lukas