Skip to content

Commit

Permalink
Merge branch 'release-5.0' into release-5.0-cc8eadf2f70e
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei authored Apr 16, 2021
2 parents 9b676b7 + 62bea27 commit 36d4910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/sink/simple_mysql_tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ func (s *simpleMySQLSink) executeRowChangedEvents(ctx context.Context, rows ...*
return errors.Trace(err)
}
}
sql, args = prepareUpdate(row.Table.QuoteString(), row.PreColumns, row.Columns, true)
sql, args = prepareReplace(row.Table.QuoteString(), row.Columns, true, false /* translateToInsert */)
} else if len(row.PreColumns) == 0 {
// insert
sql, args = prepareReplace(row.Table.QuoteString(), row.Columns, true, true)
sql, args = prepareReplace(row.Table.QuoteString(), row.Columns, true, false /* translateToInsert */)
} else if len(row.Columns) == 0 {
// delete
if s.enableCheckOldValue {
Expand Down

0 comments on commit 36d4910

Please sign in to comment.