Stored Procedures with MySQLdb/Python
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
Subject
Views
Written By
Posted
Stored Procedures with MySQLdb/Python
2878
January 10, 2006 03:32AM
1465
January 11, 2006 10:17AM
2396
January 12, 2006 02:54AM
1432
January 12, 2006 10:42AM
1495
January 13, 2006 03:35AM
1600
January 13, 2006 10:00AM
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.