Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
Since MySQLdb uses paramstyle 'format', literal "%" has to be escaped as "%%". However, if you do a query without parameters using cursor.execute(sql), "%%" remains literal "%%". Workaround is to use cursor.execute(sql,())
I suppose it could default the parameters to (), and I think that won't break anything, but I'll have to test it.