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