Eliminated deprecation of attribute "id" on subscriptions. It is now populated
with the value of REGID found in the database view USER_CHANGE_NOTIFICATION_REGS or the value of REG_ID found in the database view USER_SUBSCR_REGISTRATIONS. For AQ subscriptions, the value is 0.
This commit is contained in:
parent
1d0dd29676
commit
5f8d24dd24
@ -23,11 +23,10 @@ Subscription Object
|
||||
|
||||
.. attribute:: Subscription.id
|
||||
|
||||
This read-only attribute returns the value 0.
|
||||
|
||||
.. deprecated:: 6.0
|
||||
This attribute was never intended to be exposed and will be removed
|
||||
in cx_Oracle 7.
|
||||
This read-only attribute returns the value of ``REGID`` found in the
|
||||
database view ``USER_CHANGE_NOTIFICATION_REGS`` or the value of ``REG_ID``
|
||||
found in the database view ``USER_SUBSCR_REGISTRATIONS``. For AQ
|
||||
subscriptions, the value is 0.
|
||||
|
||||
|
||||
.. attribute:: Subscription.ipAddress
|
||||
|
||||
@ -52,6 +52,7 @@ sub = connection.subscribe(callback = callback, timeout = 1800,
|
||||
qos = cx_Oracle.SUBSCR_QOS_ROWIDS)
|
||||
print("Subscription:", sub)
|
||||
print("--> Connection:", sub.connection)
|
||||
print("--> ID:", sub.id)
|
||||
print("--> Callback:", sub.callback)
|
||||
print("--> Namespace:", sub.namespace)
|
||||
print("--> Protocol:", sub.protocol)
|
||||
|
||||
@ -1786,6 +1786,7 @@ static PyObject *cxoConnection_subscribe(cxoConnection *conn, PyObject* args,
|
||||
Py_DECREF(subscr);
|
||||
return NULL;
|
||||
}
|
||||
subscr->id = params.outRegId;
|
||||
cxoBuffer_clear(&ipAddressBuffer);
|
||||
cxoBuffer_clear(&nameBuffer);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user