Skip to content

Commit 0217e00

Browse files
committed
Scaled count should be used when length is greater than 8
1 parent 8b50611 commit 0217e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynuodb/encodedsession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def putScaledInt(self, value):
399399
valueStr = toSignedByteString(int(value * decimal.Decimal(10**scale)))
400400

401401
#If our length is more than 9 bytes we will need to send the data using ScaledCount2
402-
if len(valueStr) > 9:
402+
if len(valueStr) > 8:
403403
return self.putScaledCount2(value)
404404

405405
packed = chr(protocol.SCALEDLEN0 + len(valueStr)) + chr(scale) + valueStr

0 commit comments

Comments
 (0)