Merge pull request #592 from github/changelog-table-exec-no-prepare

avoid prepared statements for changelog table
This commit is contained in:
Shlomi Noach 2018-05-22 08:25:46 +03:00 committed by GitHub
commit bba8b257d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ func (this *Applier) WriteChangelog(hint, value string) (string, error) {
sql.EscapeName(this.migrationContext.DatabaseName),
sql.EscapeName(this.migrationContext.GetChangelogTableName()),
)
_, err := sqlutils.Exec(this.db, query, explicitId, hint, value)
_, err := sqlutils.ExecNoPrepare(this.db, query, explicitId, hint, value)
return hint, err
}