Michael,
I'm not sure if this helps, but I've noticed that if my stored
procedure returns all null values, then I can fetch them. If they are
non-null values I get an error:
[Dbg]>>> result = conn.execute('claim_highest_priority_work')
[Dbg]>>> print result.fetchone()
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python25\Lib\site-packages\sqlalchemy\engine\base.py", line
1668, in fetchone
self.connection._handle_dbapi_exception(e, None, None,
self.cursor, self.context)
File "C:\Python25\Lib\site-packages\sqlalchemy\engine\base.py", line
931, in _handle_dbapi_exception
raise exc.DBAPIError.instance(statement, parameters, e,
connection_invalidated=is_disconnect)
ProgrammingError: (ProgrammingError) Attempt to use a closed cursor.
None None
[Dbg]>>> result = conn.execute('claim_highest_priority_work')
[Dbg]>>> print result.fetchone()
(None, None, None, None, None)
Any idea why this would be?