filer.store.mysql: Escape table columns in SQL query (#4095)

This commit is contained in:
CommanderRoot
2023-01-01 14:06:41 +01:00
committed by GitHub
parent ed5f3f073b
commit 265a56630b
3 changed files with 9 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ func (store *MysqlStore2) initialize(createTable, upsertQuery string, enableUpse
}
store.SqlGenerator = &mysql.SqlGenMysql{
CreateTableSqlTemplate: createTable,
DropTableSqlTemplate: "drop table `%s`",
DropTableSqlTemplate: "DROP TABLE `%s`",
UpsertQueryTemplate: upsertQuery,
}