mysql-binlog-connector-java
mysql-binlog-connector-java copied to clipboard
time(6) type loss precision
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.