We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b58e475 commit 7c9d457Copy full SHA for 7c9d457
pynuodb/encodedsession.py
@@ -445,12 +445,12 @@ def putOpaque(self, value):
445
"""Appends an Opaque data value to the message."""
446
data = value.string
447
length = len(data)
448
+ if systemVersion is '3' and type(value) is bytes:
449
+ data = data.decode('latin-1')
450
if length < 40:
451
packed = chr(protocol.OPAQUELEN0 + length) + data
452
else:
453
lengthStr = toByteString(length)
- if systemVersion is '3':
- data = data.decode('latin-1')
454
packed = chr(protocol.OPAQUECOUNT1 - 1 + len(lengthStr)) + lengthStr + data
455
self.__output += packed
456
return self
0 commit comments