Allow stored procedure calls in 3.0b1
MySQL database connector for Python programming
Brought to you by:
adustman
ZMySQLDA doesn't use callproc(); the only option to use stored procedures is via an explicit CALL.
Unfortunately if this is done, the status result won't be fetched, thus leading to _mysql_exceptions.ProgrammingError: (2014, "Commands out of sync; you can't run this command now") exceptions because there is an outstanding result (see http://dev.mysql.com/doc/refman/5.0/en/c-api-multiple-queries.html).
The attached diff fixes it. A different approach would be better, but I lack the time at the moment, so maybe others can come with something better.
Regards,
f.-
Logged In: YES
user_id=1573938
Originator: NO
Your patch, or a variation, has been applied to the current CVS tree.