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

@@ -53,7 +53,7 @@ func (store *MysqlStore) initialize(upsertQuery string, enableUpsert bool, user,
}
store.SqlGenerator = &SqlGenMysql{
CreateTableSqlTemplate: "",
DropTableSqlTemplate: "drop table `%s`",
DropTableSqlTemplate: "DROP TABLE `%s`",
UpsertQueryTemplate: upsertQuery,
}