[DB-SIG] paramstyles (mysql string length?)

Dieter Maurer dieter at handshake.de
Thu Apr 20 20:08:48 CEST 2006

M.-A. Lemburg wrote at 2006-4-19 20:36 +0200:
> ...
>Actually, I don't think that parsing SQL is really necessary
>at all: in all the years I've used qmark style, I've never come
>across a situation where a SQL literal would include a question

I do not think this is a good idea. '?' are perfectly legal
in string literals and there they conventionally
do *NOT* mean "insert a parameter".

>In reality, it all boils down to doing a simple search for
>'?' in the string - after all, you usually pass strings in via
>bound parameters.

Zope, at least, would be unhappy, as it does not (yet) support
bound parameters.


More information about the DB-SIG mailing list