Skip to content

Commit 7f0a34b

Browse files
A negative value returned means null no matter what value was actually
sent!
1 parent 9863ecd commit 7f0a34b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/oracledb/impl/thin/messages.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ cdef class MessageWithData(Message):
613613
name=var_impl.dbtype.name)
614614
if not self.in_fetch:
615615
buf.read_sb4(&actual_num_bytes)
616-
if actual_num_bytes < 0 and column_value is False:
616+
if actual_num_bytes < 0 and ora_type_num == TNS_DATA_TYPE_BOOLEAN:
617617
column_value = None
618618
elif actual_num_bytes != 0 and column_value is not None:
619619
unit_type = "bytes" if isinstance(column_value, bytes) \

0 commit comments

Comments
 (0)