> On Thu, Feb 16, 2006 at 11:59:31AM -0000, Martin J. Evans wrote:
> > I've finally tracked this problem down and I believe it is down to the
> > code which turns off server_side_prepare if the SQL looks like a
> > create statement.

Uuuh, I really do not like this typical "clever" driver approach.

First of all, why should a CREATE TABLE statement *not* use prepared
statements? For example:

   CREATE TABLE foo (..., myenum VARCHAR(4) DEFAULT ?, ...)

I do not know, whether the server side supports it, but if it doesn't:
Who says that will remain so?

And, besides, I really find it better, if the user must choose. These
kind of "clever" things will always end in discussing how and when and
when not and ... It is much better to give the people a clear advice:
If it doesn't work like you want, do that.


Jochen



--
If you obey all the rules you miss all the fun. (Katharine Hepburn)

Reply via email to