MySQLdb execute fails with dict argument.
Posted by:
mARK no
Date: June 27, 2007 07:29PM
In MySQLdb 1.2.0, execute(sql, {'asdf':'qwer'}) works fine (on other systems here), but in v1.2.1_p2 on my box it fails. This is due to _mysql.escape_dict() returning an empty dict given a dict argument and the default converters.
I have been unable to downgrade to 1.2.0, and building 1.2.2 fails with many missing headers when compiling mysql.c (after fixing its assumption that I'm running a PentiumPro). I am using Ubuntu 7 on an Athlon-64, and Python 2.5. The box where it works has Python 2.4.
Can anyone shed light on this? Is it a know problem, or something peculiar to my installation? Does anyone know of a pre-built 1.2.2 or 1.2.0?
Thanks.
Subject
Written By
Posted
MySQLdb execute fails with dict argument.
June 27, 2007 07:29PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.