Skip to content

Commit

Permalink
Small code optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-tuininga committed Apr 6, 2023
1 parent 335d868 commit 7eb9be4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/oracledb/impl/thin/messages.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1776,10 +1776,8 @@ cdef class DataTypesMessage(Message):
buf.write_uint16(TNS_CHARSET_UTF8, BYTE_ORDER_LSB)
buf.write_uint16(TNS_CHARSET_UTF8, BYTE_ORDER_LSB)
buf.write_uint8(TNS_ENCODING_MULTI_BYTE | TNS_ENCODING_CONV_LENGTH)
buf.write_uint8(len(buf._caps.compile_caps))
buf.write_bytes(bytes(buf._caps.compile_caps))
buf.write_uint8(len(buf._caps.runtime_caps))
buf.write_bytes(bytes(buf._caps.runtime_caps))
buf.write_bytes_with_length(bytes(buf._caps.compile_caps))
buf.write_bytes_with_length(bytes(buf._caps.runtime_caps))

# write data types
i = 0
Expand Down

0 comments on commit 7eb9be4

Please sign in to comment.