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


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

Re: MySQLdb insert HTML code error

Started byAnatoli Hristov <tolidtm@gmail.com>
First post2012-12-11 08:41 +0100
Last post2012-12-11 08:41 +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 08:41 +0100

#34600 — Re: MySQLdb insert HTML code error

FromAnatoli Hristov <tolidtm@gmail.com>
Date2012-12-11 08:41 +0100
SubjectRe: MySQLdb insert HTML code error
Message-ID<mailman.710.1355211690.29569.python-list@python.org>
>
>    First thing -- DON'T put quotes around the %s place-holders... The
> whole purpose of using the parameterized .execute() is to let the
> database adapter properly escape the parameters before putting them into
> the SQL (since MySQL didn't have prepared statements before v5, it was
> producing full SQL statements for each insert, even with .executemany()
> )

Thank you, this solved my problem.:)

[toc] | [standalone]


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


csiph-web