File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11# ------------------------------------------------------------------------------
2- # Copyright (c) 2020, 2022 , Oracle and/or its affiliates.
2+ # Copyright (c) 2020, 2024 , Oracle and/or its affiliates.
33#
44# This software is dual-licensed to you under the Universal Permissive License
55# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
2929# thick_impl.pyx).
3030# ------------------------------------------------------------------------------
3131
32- cdef void _callback_handler(void * context, dpiSubscrMessage* message) with gil:
32+ cdef int _callback_handler(void * context,
33+ dpiSubscrMessage* message) except - 1 with gil:
3334 cdef:
3435 object subscr = < object > context
3536 ThickSubscrImpl subscr_impl
@@ -156,7 +157,7 @@ cdef class ThickSubscrImpl(BaseSubscrImpl):
156157 params.name = name_buf.ptr
157158 params.nameLength = name_buf.length
158159 if self .callback is not None :
159- params.callback = _callback_handler
160+ params.callback = < dpiSubscrCallback > _callback_handler
160161 params.callbackContext = < void * > subscr
161162 params.ipAddress = ip_address_buf.ptr
162163 params.ipAddressLength = ip_address_buf.length
You can’t perform that action at this time.
0 commit comments