Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Calling simple procedure raises ProgrammingError: (2014, "Commands out of sync; you can't run this command now") #115
I'm having this issue while trying to call a procedure that performs a procedure simple select
/usr/lib/pymodules/python2.7/web/db.pyc in commit(unload)
--> 504 ctx.db.commit()
ProgrammingError: (2014, "Commands out of sync; you can't run this command now")
After googling around I found that this has to do with a open cursor not being closed or so. I can call this procedure normaly from mysql prompt or from MySQLdb python module. What is the correct way of calling procedures with web.py db api?