BLOBS and python

Oleg Broytmann phd at phd.russ.ru
Fri May 5 10:26:36 CEST 2000


On Thu, 4 May 2000, sp00fD wrote:
> con.execute("INSERT INTO foo (myblob) VALUES ('%s')" % image)

con.execute("INSERT INTO foo (myblob) VALUES ('%s')" % MySQL.escape(image))
                                                       ^^^^^^^^^^^^ !!!

Oleg.            (All opinions are mine and not of my employer)
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list