SQL escape sequence problems
Asle Pedersen
apederse at siving.hia.no
Wed Jan 19 05:41:20 EST 2000
I'm trying to run the following code:
father="something"
sql="SELECT FROM TABLE WHERE MESSAGEID='%s'" % (father)
MySQL.escape(sql)
but there is a problem since ' is really an escape character. How can I get
around this problem? I'm using MySQLmodule-1.2. running under win32
enviroment. I have tried to get a compiled version of the MySQLdb module
whithout any success.
regards,
Asle
More information about the Python-list
mailing list