Stored procedure call failing without CLIENT_MULTI_RESULTS flag set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oursql |
New
|
Undecided
|
Unassigned |
Bug Description
When calling a stored procedure I get the following error:
PROCEDURE database.
The procedure is called through SQLAlchemy but ultimately ends up in a cursor.execute call.
... /sqlalchemy/
cursor.
File "cursor.pyx", line 122, in oursql.
File "statement.pyx", line 400, in oursql.
File "statement.pyx", line 126, in oursql.
ProgrammingError: (ProgrammingError) (1312, "PROCEDURE database.
http://
Which is further explained in the mysql documentation http://
"If your program uses CALL statements to execute stored procedures, the CLIENT_
It looks like you're aware of this as I found the following in the code in connection.pyx:
# I'll come back to this later. Dealing with multiple result sets is
# such a pain.
#if multi_results:
# flags |= CLIENT_
#if multi_statements:
# flags |= CLIENT_
Seems to be the only way to call a stored proc from what I can tell from the documentation.
OSX 10.6
MySQL 5.1.48
Python 2.6.1
SQLAlchemy 0.6.5