From 6d80340e4f4aa00d6ada4e0f77136656848f811a Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Fri, 19 Aug 2016 09:06:00 +0200 Subject: [PATCH] setting time_zone on DML apply --- build.sh | 2 +- go/logic/applier.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 150250b59..4548f7903 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ # # -RELEASE_VERSION="1.0.10" +RELEASE_VERSION="1.0.11" function build { osname=$1 diff --git a/go/logic/applier.go b/go/logic/applier.go index 10da785b8..189108abc 100644 --- a/go/logic/applier.go +++ b/go/logic/applier.go @@ -871,6 +871,9 @@ func (this *Applier) ApplyDMLEventQuery(dmlEvent *binlog.BinlogDMLEvent) error { if err != nil { return err } + if _, err := tx.Exec("SET SESSION time_zone = '+00:00'"); err != nil { + return err + } if _, err := tx.Exec(query, args...); err != nil { return err }