Skip to content

Commit

Permalink
Merge pull request #175 from github/apply-dml-tz
Browse files Browse the repository at this point in the history
setting time_zone on DML apply
  • Loading branch information
Shlomi Noach authored Aug 22, 2016
2 parents 36a2863 + 6d80340 commit fc95456
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 fc95456

Please sign in to comment.