setting time_zone on DML apply

This commit is contained in:
Shlomi Noach 2016-08-19 09:06:00 +02:00
parent e6a02d81e0
commit 6d80340e4f
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#
#
RELEASE_VERSION="1.0.10"
RELEASE_VERSION="1.0.11"
function build {
osname=$1

View File

@ -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
}