Finally I set myself to the long overdue task of upgrading from mysqldb 0.3.5 to 0.9.2.
I was happy to find that the thread_id() method was still implemented, but somehow I keep on getting a "TypeError: function takes no arguments" when calling this method (or any other method via the cursor.connection attribute for that matter).
I'm calling this method without any arguments and when I temporarily skip the PyArg_NoArgs() from _mysql.c everything works fine. I'm using python 2.2.1, mysqldb 0.9.2 and mysql 4.0.16. Any help is kindly appreciated.
Helger
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally I set myself to the long overdue task of upgrading from mysqldb 0.3.5 to 0.9.2.
I was happy to find that the thread_id() method was still implemented, but somehow I keep on getting a "TypeError: function takes no arguments" when calling this method (or any other method via the cursor.connection attribute for that matter).
I'm calling this method without any arguments and when I temporarily skip the PyArg_NoArgs() from _mysql.c everything works fine. I'm using python 2.2.1, mysqldb 0.9.2 and mysql 4.0.16. Any help is kindly appreciated.
Helger
I suspect this is fixed in the 0.9.3 beta.
Thanks Andy. Indeed, 0.9.3 beta fixed all the problems.
Regards,
Helger