Fixed bug when calling registerquery() with bind values.

This commit is contained in:
Anthony Tuininga 2022-11-30 17:47:55 -07:00
parent 8df7748b15
commit 1de4a80ec1
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ Thick Mode Changes
(`issue 101 <https://github.com/oracle/python-oracledb/issues/101>`__).
#) Fixed bug closing a SODA document cursor explicitly (instead of simply
allowing it to be closed automatically when it goes out of scope).
#) Fixed bug when calling :meth:`Subscription.registerquery()` with bind
values.
Common Changes
++++++++++++++

View File

@ -127,7 +127,7 @@ cdef class ThickSubscrImpl(BaseSubscrImpl):
&cursor_impl._handle) < 0:
_raise_from_odpi()
if args is not None:
cursor_impl.bind_one(args)
cursor_impl.bind_one(cursor, args)
cursor_impl.execute(cursor)
if self.qos & DPI_SUBSCR_QOS_QUERY:
if dpiStmt_getSubscrQueryId(cursor_impl._handle, &query_id) < 0: