mysql-binlog-connector-java icon indicating copy to clipboard operation
mysql-binlog-connector-java copied to clipboard

time(6) type loss precision

Open welyss opened this issue 1 year ago • 0 comments

Hi, +----+----------+-----------------+ | id | t | tt | +----+----------+-----------------+ | 1 | 00:00:01 | 00:00:01.000001 | | 2 | 00:01:06 | 00:00:16.000024 | +----+----------+-----------------+ --- tt column deserialize only '00:00:16' in int, fraction '000024' loss Code in method deserializeDatetimeV2 of AbstractRowsEventDataDeserializer.java maybe wrong, I refrence the another project in github named 'canal', And replace the method deserializeDatetimeV2 with someting similar in 'canal', then it worked, but i don't understand the detail, just copy and explain the similar code.

welyss avatar Jul 12 '24 03:07 welyss