From 1f772dfcd9adc0e83c2b052b95c516f471135bfe Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Tue, 15 May 2018 15:07:12 +0300 Subject: [PATCH] experiment done: restoring patch --- .../github.com/siddontang/go-mysql/replication/row_event.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/siddontang/go-mysql/replication/row_event.go b/vendor/github.com/siddontang/go-mysql/replication/row_event.go index 3cf2186..85a3e43 100644 --- a/vendor/github.com/siddontang/go-mysql/replication/row_event.go +++ b/vendor/github.com/siddontang/go-mysql/replication/row_event.go @@ -401,9 +401,9 @@ func (e *RowsEvent) decodeValue(data []byte, tp byte, meta uint16) (v interface{ n = 8 i64 := binary.LittleEndian.Uint64(data) - // if i64 == 0 { - // return "0000-00-00 00:00:00", n, nil - // } + if i64 == 0 { // commented by Shlomi Noach. Yes I know about `git blame` + return "0000-00-00 00:00:00", n, nil + } d := i64 / 1000000 t := i64 % 1000000 v = time.Date(int(d/10000),