Skip to content

Commit 1de4a80

Browse files
Fixed bug when calling registerquery() with bind values.
1 parent 8df7748 commit 1de4a80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Thick Mode Changes
2727
(`issue 101 <https://github.com/oracle/python-oracledb/issues/101>`__).
2828
#) Fixed bug closing a SODA document cursor explicitly (instead of simply
2929
allowing it to be closed automatically when it goes out of scope).
30+
#) Fixed bug when calling :meth:`Subscription.registerquery()` with bind
31+
values.
3032

3133
Common Changes
3234
++++++++++++++

src/oracledb/impl/thick/subscr.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ cdef class ThickSubscrImpl(BaseSubscrImpl):
127127
&cursor_impl._handle) < 0:
128128
_raise_from_odpi()
129129
if args is not None:
130-
cursor_impl.bind_one(args)
130+
cursor_impl.bind_one(cursor, args)
131131
cursor_impl.execute(cursor)
132132
if self.qos & DPI_SUBSCR_QOS_QUERY:
133133
if dpiStmt_getSubscrQueryId(cursor_impl._handle, &query_id) < 0:

0 commit comments

Comments
 (0)