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 a0f5638 commit 4ae1f1fCopy full SHA for 4ae1f1f
pymysqlreplication/row_event.py
@@ -320,18 +320,18 @@ def __read_new_decimal(self, column):
320
321
for i in range(0, uncomp_integral):
322
value = struct.unpack('>i', self.packet.read(4))[0] ^ mask
323
- res += str(value)
+ res += '%09d' % value
324
325
res += "."
326
327
for i in range(0, uncomp_fractional):
328
329
330
331
size = compressed_bytes[comp_fractional]
332
if size > 0:
333
value = self.packet.read_int_be_by_size(size) ^ mask
334
+ res += '%0*d' % (comp_fractional, value)
335
336
return decimal.Decimal(res)
337
0 commit comments