MySQLdb insert HTML code error

Anatoli Hristov tolidtm at gmail.com
Mon Dec 10 20:05:38 EST 2012


> You're using a parametrised query (which is good :-)), but you've included
> quotes around the placeholders. There's no need to do that. They'll be
> quoted automatically when necessary:
>
> sql = "INSERT INTO product_description (product_id, language_id, name,
> description) VALUES (%s,%s,%s,%s)"

Thanks a lot it woooorks. I was looking in the wrong direction (escape
str. raw etc) Thanks again :-)



More information about the Python-list mailing list