Call me stupid, but I don't see any quick way to remove slashes from the fetched data. Any help?
Give an example of what you are doing, and I'll show you why you shouldn't have to do any such thing.
What I have looks something like this:
query = """INSERT INTO posts (id, forum_id, ...) VALUES (%s, %s, ...)"""
posts
id
forum_id
cur.execute(query, (post_id, forum_id, ...))
I just figured it out. I was doing db.escape() first and forgotten it. Sorry about that.
Log in to post a comment.
Call me stupid, but I don't see any quick way to remove slashes from the fetched data. Any help?
Give an example of what you are doing, and I'll show you why you shouldn't have to do any such thing.
What I have looks something like this:
query = """INSERT INTO
posts
(id
,forum_id
, ...) VALUES (%s, %s, ...)"""cur.execute(query, (post_id, forum_id, ...))
I just figured it out. I was doing db.escape() first and forgotten it. Sorry about that.