Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34591 > unrolled thread

Re: MySQLdb insert HTML code error

Started byAnatoli Hristov <tolidtm@gmail.com>
First post2012-12-11 02:05 +0100
Last post2012-12-11 02:05 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: MySQLdb insert HTML code error Anatoli Hristov <tolidtm@gmail.com> - 2012-12-11 02:05 +0100

#34591 — Re: MySQLdb insert HTML code error

FromAnatoli Hristov <tolidtm@gmail.com>
Date2012-12-11 02:05 +0100
SubjectRe: MySQLdb insert HTML code error
Message-ID<mailman.703.1355187941.29569.python-list@python.org>
> 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 :-)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web