Skip to content

Commit

Permalink
setting time_zone on DML apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Noach committed Aug 19, 2016
1 parent e6a02d8 commit 6d80340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
#

RELEASE_VERSION="1.0.10"
RELEASE_VERSION="1.0.11"

function build {
osname=$1
Expand Down
3 changes: 3 additions & 0 deletions go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6d80340

Please sign in to comment.