Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34591 > unrolled thread
| Started by | Anatoli Hristov <tolidtm@gmail.com> |
|---|---|
| First post | 2012-12-11 02:05 +0100 |
| Last post | 2012-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.
Re: MySQLdb insert HTML code error Anatoli Hristov <tolidtm@gmail.com> - 2012-12-11 02:05 +0100
| From | Anatoli Hristov <tolidtm@gmail.com> |
|---|---|
| Date | 2012-12-11 02:05 +0100 |
| Subject | Re: 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 :-)
Back to top | Article view | comp.lang.python
csiph-web