MySQL Forums
Forum List  »  Connector/Python

Stored Procedures with MySQLdb/Python
Posted by: stefan suhrer
Date: December 19, 2005 08:21AM

Hi

I tried to use a stored procedure (MySQL 5.0.16) with MySQLdb:
CREATE PROCEDURE spTest( )
BEGIN
SELECT 'Hello World';
END


then in python:
cursor.execute(""" Call spTest() """)


the resulting error:
_mysql_exceptions.OperationalError: (1312, "PROCEDURE spTest can't return a result set in the given context")

any ideas?!
Thanx

Options: ReplyQuote


Subject
Written By
Posted
Stored Procedures with MySQLdb/Python
December 19, 2005 08:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.