MySQLdb + Python + quotes

Jeff Bauer jbauer at
Wed May 10 00:46:22 CEST 2000

Fredrik Lundh wrote:
> from the recent "BLOBS and python" thread:
>     From: Oleg Broytmann <phd at>
> ... VALUES ('%s')" % MySQL.escape(image))
>                           ^^^^^^^^^^^^ !!!
> hope this helps!
> </F>

Same database, but different library. MySQLdb uses 
escape_string() vs. MySQL's escape().

At any rate the eff-bot ought to be busy getting SOAP 
released instead of responding to newsgroup postings. ;-)

  of-labor-<wink>-ly y'rs,

Jeff Bauer
Rubicon Research

More information about the Python-list mailing list