fix TableEngine correlates to the 3rd placeholder in the template string, not the 1st

This commit is contained in:
rj03hou 2016-12-02 11:56:29 +08:00
parent 9b068ec222
commit ffbd35e180

View File

@ -705,9 +705,9 @@ func (this *Applier) CreateAtomicCutOverSentryTable() error {
id int auto_increment primary key id int auto_increment primary key
) engine=%s comment='%s' ) engine=%s comment='%s'
`, `,
this.migrationContext.TableEngine,
sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.DatabaseName),
sql.EscapeName(tableName), sql.EscapeName(tableName),
this.migrationContext.TableEngine,
atomicCutOverMagicHint, atomicCutOverMagicHint,
) )
log.Infof("Creating magic cut-over table %s.%s", log.Infof("Creating magic cut-over table %s.%s",