Re: Problems using PDO_MYSQL with MySQL3
| From: | Andrey Hristov | Date: | Fri, 24 Mar 2006 15:31:47 +0000 |
| Subject: | Re: Problems using PDO_MYSQL with MySQL3 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3660@lists.php.net to get a copy of this message | ||
Hi again,
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+).
Regards,
Andrey
Andreas Korthaus wrote:
Hi Hartmut! Hartmut Holzgraefe wrote:Andrey Hristov wrote:Do you see any code like that in my PDO script: http://news.php.net/php.pecl.dev/3654 ? That's the whole script for testing this. Or do you think of internal usage of these features? But if this is the case, the manual should be corrected as this will never work with MySQL 3.x. best regards AndreasHi, "Uknown command" comes from the server (ER_UNKNOWN_COM_ERROR) PDO sends a command which is not implemented in 3.23 it's not a query but some COM like COM_PING and so on.Blind guess: prepared statement/parameter bindung stuff