MySQLdb + Python + quotes

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


Fredrik Lundh wrote:
> from the recent "BLOBS and python" thread:
>     From: Oleg Broytmann <phd at phd.russ.ru>
> ... 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. ;-)

even-bots-should-understand-the-concept-of-division-
  of-labor-<wink>-ly y'rs,

Jeff Bauer
Rubicon Research




More information about the Python-list mailing list