Skip to content

Commit af5707e

Browse files
Fixed bug that caused "Message.dbname" to always be the value "None".
1 parent 1de4a80 commit af5707e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: doc/src/release_notes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Thick Mode Changes
2929
allowing it to be closed automatically when it goes out of scope).
3030
#) Fixed bug when calling :meth:`Subscription.registerquery()` with bind
3131
values.
32+
#) Fixed bug that caused :data:`Message.dbname` to always be the value `None`.
3233

3334
Common Changes
3435
++++++++++++++

Diff for: src/oracledb/subscr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Message:
161161
def __init__(self, subscription: Subscription) -> None:
162162
self._subscription = subscription
163163
self._consumer_name = None
164-
self._db_name = None
164+
self._dbname = None
165165
self._queries = []
166166
self._queue_name = None
167167
self._registered = False
@@ -192,7 +192,7 @@ def dbname(self) -> Union[str, None]:
192192
"""
193193
Returns the name of the database that generated the notification.
194194
"""
195-
return self._db_name
195+
return self._dbname
196196

197197
@property
198198
def msgid(self) -> Union[bytes, None]:

0 commit comments

Comments
 (0)