Hi,
When issueing a GRANT or CREATE PROCEDURE statement and doing a Prepare, this fails with error:
#HY000This command is not supported in the prepared statement protocol yet
Given generic code (that is: ALL statements are prepared), perhaps this should be silently ignored?
I'm using MySQL 5.
--
Martijn Tonies
Upscene Productions
GRANT/CREATE PROCEDURE fails Prepare
-
upscene
-
upscene
I guess that depends on your way of seeing the "prepare".
For MySQL 4, a Delphi-side "prepare" doesn't do a thing cause it doesn't support the MySQL native Prepare Protocol, right?
So for statements that not (yet) support a MySQL server-side prepare, why not ignore the error as well?
--
Martijn Tonies
Upscene Productions
For MySQL 4, a Delphi-side "prepare" doesn't do a thing cause it doesn't support the MySQL native Prepare Protocol, right?
So for statements that not (yet) support a MySQL server-side prepare, why not ignore the error as well?
--
Martijn Tonies
Upscene Productions
-
upscene
Well, for one thing, it avoids people have to check if their code runs against 4.1 (and calling Prepare as always) or running against 4.0 (and NOT calling Prepare). Or - as I got a confirmation by e-mail earlier - will it ignore the Prepare when running against 4.0.
Another "plus": people don't have to check the statement type and can call Prepare always, even though MySQL itself doesn't support it for that particular statment type.
--
Martijn Tonies
Upscene Productions
Another "plus": people don't have to check the statement type and can call Prepare always, even though MySQL itself doesn't support it for that particular statment type.
--
Martijn Tonies
Upscene Productions