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
3028
January 10, 2006 03:32AM
1534
January 11, 2006 10:17AM
2470
January 12, 2006 02:54AM
1567
January 12, 2006 10:42AM
1605
January 13, 2006 03:35AM
1680
January 13, 2006 10:00AM
1501
January 16, 2006 09:09PM
1598
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.