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 1
1
# ------------------------------------------------------------------------------
2
- # Copyright (c) 2020, 2022 , Oracle and/or its affiliates.
2
+ # Copyright (c) 2020, 2024 , Oracle and/or its affiliates.
3
3
#
4
4
# This software is dual-licensed to you under the Universal Permissive License
5
5
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
29
29
# thick_impl.pyx).
30
30
# ------------------------------------------------------------------------------
31
31
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:
33
34
cdef:
34
35
object subscr = < object > context
35
36
ThickSubscrImpl subscr_impl
@@ -156,7 +157,7 @@ cdef class ThickSubscrImpl(BaseSubscrImpl):
156
157
params.name = name_buf.ptr
157
158
params.nameLength = name_buf.length
158
159
if self .callback is not None :
159
- params.callback = _callback_handler
160
+ params.callback = < dpiSubscrCallback > _callback_handler
160
161
params.callbackContext = < void * > subscr
161
162
params.ipAddress = ip_address_buf.ptr
162
163
params.ipAddressLength = ip_address_buf.length
You can’t perform that action at this time.
0 commit comments