Hi all,
When I try to do something like:
c.execute("""SELECT id FROM orders WHERE price=%f""", (price)) on a table with a field named price (which is a float type field) it returns ...
TypeError; bad argument type for built-in operation
On the traceback it gives the error to line 66 of cursors.py
OS: w2000 mysqldb version:0.9.1final python: 2.2
Any help?
TIA
Vicente (Teten)
Always use %s regardless of data type.
Log in to post a comment.
Hi all,
When I try to do something like:
c.execute("""SELECT id FROM orders WHERE price=%f""", (price)) on a table with a field named price (which is a float type field) it returns ...
TypeError; bad argument type for built-in operation
On the traceback it gives the error to line 66 of cursors.py
OS: w2000
mysqldb version:0.9.1final
python: 2.2
Any help?
TIA
Vicente (Teten)
Always use %s regardless of data type.