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

Ian Bicking ianb at colorstudy.com
Wed Apr 19 17:21:09 CEST 2006


M.-A. Lemburg wrote:
>>The ones I know about (pysqlite 1.x, pyPgSQL, psycopg, MySQLdb) all only 
>>look at the Python values, not at the pyformat format character for 
>>deciding how to bind the variable.
> 
> 
> If that's the case, then I suppose supporting qmark style
> wouldn't be too much of a problem.

AFAIK, they all use %, so you have to do execute("%s like 'foo%%'", 
(value,)); this is quite different from qmark.



-- 
Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org


More information about the DB-SIG mailing list