MySQL Forums
Forum List  »  Stored Procedures

Stored Procedures with MySQLdb/Python
Posted by: stefan suhrer
Date: January 10, 2006 03:32AM

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
Views
Written By
Posted
Stored Procedures with MySQLdb/Python
2878
January 10, 2006 03:32AM
1414
January 16, 2006 09:09PM
1518
January 16, 2006 10:29PM


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.