File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Thin Mode Changes
1515
1616#) Fixed bug connecting to databases with older 11g password verifiers
1717 (`issue 189 <https://github.com/oracle/python-oracledb/issues/189 >`__).
18+ #) Fixed bug which caused a cursor leak if an error was thrown while
19+ processing the execution of a query.
1820#) Fixed bugs in the implementation of the statement cache.
1921
2022Thick Mode Changes
Original file line number Diff line number Diff line change @@ -741,7 +741,8 @@ cdef class MessageWithData(Message):
741741 ThinConnImpl conn_impl = self .conn_impl
742742 object exc_type
743743 Message._process_error_info(self , buf)
744- cursor_impl._statement._cursor_id = self .error_info.cursor_id
744+ if self .error_info.cursor_id != 0 :
745+ cursor_impl._statement._cursor_id = self .error_info.cursor_id
745746 if not cursor_impl._statement._is_plsql and not self .in_fetch:
746747 cursor_impl.rowcount = self .error_info.rowcount
747748 cursor_impl._lastrowid = self .error_info.rowid
You can’t perform that action at this time.
0 commit comments