File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ def putClob(self, value):
507507 def putScaledTime (self , value ):
508508 """Appends a Scaled Time value to the message."""
509509 (ticks , scale ) = datatype .TimeToTicks (value )
510- valueStr = toByteString (ticks )
510+ valueStr = toSignedByteString (ticks )
511511 if len (valueStr ) == 0 :
512512 packed = chr (protocol .SCALEDTIMELEN1 ) + chr (0 ) + chr (0 )
513513 else :
@@ -702,7 +702,7 @@ def getScaledTime(self):
702702
703703 if typeCode in range (protocol .SCALEDTIMELEN1 , protocol .SCALEDTIMELEN8 + 1 ):
704704 scale = fromByteString (self ._takeBytes (1 ))
705- time = fromByteString (self ._takeBytes (typeCode - 208 ))
705+ time = fromSignedByteString (self ._takeBytes (typeCode - 208 ))
706706 ticks = decimal .Decimal (str (time )) / decimal .Decimal (10 ** scale )
707707 return datatype .TimeFromTicks (round (int (ticks )), int ((ticks % 1 ) * decimal .Decimal (1000000 )))
708708
You can’t perform that action at this time.
0 commit comments