logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Problems using PDO_MYSQL with MySQL3: msg#00103

Subject: Re: Problems using PDO_MYSQL with MySQL3
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



<Prev in Thread] Current Thread [Next in Thread>