twingly / ecco

:dolphin: MySQL replication binlog parser in JRuby
7 stars 2 forks source link

Add tests to catch upcoming VARCHAR/DATETIME serialization changes #29

Open roback opened 6 years ago

roback commented 6 years ago

Add test cases so we catch the upcoming changes in mysql-binlog-connector 1.0.

From https://github.com/shyiko/mysql-binlog-connector-java/pull/131#issuecomment-263158666:

  • DATETIME/DATETIME_V2/TIMESTAMP/TIMESTAMP_V2/DATE/TIME/TIME_V2 deserialization to longs (Unix timestamp). This is BACKWARD-INCOMPATIBLE change.
  • BINARY/VARBINARY deserialization (shyiko/mysql-binlog-connector-java#56). This is BACKWARD-INCOMPATIBLE change as CHAR/VARCHAR/BINARY/VARBINARY are now returned as byte[] (which you can obviously convert to String with new String(byte[], Charset) if needed).