Re: MySQLdb insert HTML code error

Discussion in 'Python' started by Anatoli Hristov, Dec 11, 2012.

  1. >
    > 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.:)
    Anatoli Hristov, Dec 11, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anatoli Hristov

    MySQLdb insert HTML code error

    Anatoli Hristov, Dec 11, 2012, in forum: Python
    Replies:
    0
    Views:
    134
    Anatoli Hristov
    Dec 11, 2012
  2. Mark Lawrence

    Re: MySQLdb insert HTML code error

    Mark Lawrence, Dec 11, 2012, in forum: Python
    Replies:
    0
    Views:
    153
    Mark Lawrence
    Dec 11, 2012
  3. Anatoli Hristov

    Re: MySQLdb insert HTML code error

    Anatoli Hristov, Dec 11, 2012, in forum: Python
    Replies:
    0
    Views:
    175
    Anatoli Hristov
    Dec 11, 2012
  4. Anatoli Hristov

    Re: MySQLdb insert HTML code error

    Anatoli Hristov, Dec 11, 2012, in forum: Python
    Replies:
    0
    Views:
    164
    Anatoli Hristov
    Dec 11, 2012
  5. Mark Lawrence

    Re: MySQLdb insert HTML code error

    Mark Lawrence, Dec 11, 2012, in forum: Python
    Replies:
    0
    Views:
    165
    Mark Lawrence
    Dec 11, 2012
Loading...

Share This Page