Skip to content

Commit f9a27b5

Browse files
authored
Merge branch 'master' into revert-migration
2 parents c6239e2 + 215dee4 commit f9a27b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/logic/applier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func (this *Applier) WriteCheckpoint(chk *Checkpoint) (int64, error) {
632632
}
633633

634634
func (this *Applier) ReadLastCheckpoint() (*Checkpoint, error) {
635-
row := this.db.QueryRow(fmt.Sprintf(`select /* gh-ost */ * from %s.%s order by gh_ost_chk_id desc limit 1`, this.migrationContext.DatabaseName, this.migrationContext.GetCheckpointTableName()))
635+
row := this.db.QueryRow(fmt.Sprintf(`select /* gh-ost */ * from %s.%s order by gh_ost_chk_id desc limit 1`, sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.GetCheckpointTableName())))
636636
chk := &Checkpoint{
637637
IterationRangeMin: sql.NewColumnValues(this.migrationContext.UniqueKey.Columns.Len()),
638638
IterationRangeMax: sql.NewColumnValues(this.migrationContext.UniqueKey.Columns.Len()),

0 commit comments

Comments
 (0)