Merge pull request #175 from github/apply-dml-tz
setting time_zone on DML apply
This commit is contained in:
commit
fc954562a3
2
build.sh
2
build.sh
@ -2,7 +2,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
RELEASE_VERSION="1.0.10"
|
||||
RELEASE_VERSION="1.0.11"
|
||||
|
||||
function build {
|
||||
osname=$1
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user