Re: Problems using PDO_MYSQL with MySQL3
| From: | Andreas Korthaus | Date: | Fri, 24 Mar 2006 15:50:17 +0000 |
| Subject: | Re: Problems using PDO_MYSQL with MySQL3 | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3662@lists.php.net to get a copy of this message | ||
Andrey Hristov wrote:
my guess is: because PDO is compiled against 5.0.18 which has prepared statements it tries to prepare the statement, no matter you don't ask for that explicitly and even because there is no binding. COM_PREPARE is uknown for 3.23 and therefore you get an error. AFAIK it's on the ToDo to make runtime detection of the server the user is connected to try preparing only if supports PS (4.1+).Sounds reasonable. Since PDO is designed to use some advanced features of the RDBMS it's good to do it this way. Anyway, with MySQL3 you can only use a small subset of PDOs features and MySQL3 is fairly old, the detection is not a very important feature. It's more important that MySQL4.1+ works nicely with PDO, MYSQL3 detection should not harm 4.1+ performance/features. best regards Andreas