elaborate output on error in apply dml

This commit is contained in:
Shlomi Noach 2016-08-15 15:23:30 +02:00
parent 01d48e667c
commit 596dce5993

View File

@ -860,5 +860,8 @@ func (this *Applier) ApplyDMLEventQuery(dmlEvent *binlog.BinlogDMLEvent) error {
if this.migrationContext.CountTableRows {
atomic.AddInt64(&this.migrationContext.RowsEstimate, rowDelta)
}
if err != nil {
err = fmt.Errorf("%s; query=%s; args=%+v", err.Error(), query, args)
}
return err
}