ugorji/go

Backwards compatibility for time using msgpack encoding and decoding

Closed this issue · 4 comments

Can you please recommend some backwards compatibility :
If you encode the time in a version before the commit 5a66da2, how can we decode it in the commits after it? The used encoder is msgpack.
The error is : Error executing command: msgpack decode error [pos 131]: invalid length of bytes for decoding time - expecting 4 or 8 or 12, got 15

@Trial97 That commit didn't make any changes to time encoding for msgpack.

Sorry for the inconveniences the commit that the change happened is: debb8e2, not the one mentioned before.

That flag is only to migrate the data?

This the best I can do.

You might have to read with one handle configured one way, and write back out with another handle configured the other way. This allows you migrate.