Changeset: c9c3b2087ed8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9c3b2087ed8
Modified Files:
clients/python/monetdb/sql/cursors.py
Branch: default
Log Message:
check if cursor is closed
diffs (13 lines):
diff --git a/clients/python/monetdb/sql/cursors.py
b/clients/python/monetdb/sql/cursors.py
--- a/clients/python/monetdb/sql/cursors.py
+++ b/clients/python/monetdb/sql/cursors.py
@@ -155,6 +155,9 @@ class Cursor(object):
will be bound to variables in the operation.
"""
+ if not self.connection:
+ self.__exception_handler(ProgrammingError, "cursor is closed")
+
# clear message history
self.messages = []
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list