Fix quote

This commit is contained in:
Lunny Xiao 2020-03-09 10:30:41 +08:00
parent fce6fbd4d5
commit 75405e50d2
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ func (db *oracle) IsReserved(name string) bool {
func (db *oracle) DropTableSQL(tableName, autoincrCol string) ([]string, bool) { func (db *oracle) DropTableSQL(tableName, autoincrCol string) ([]string, bool) {
var sqls = []string{ var sqls = []string{
fmt.Sprintf("DROP TABLE `%s`", tableName), fmt.Sprintf("DROP TABLE %s", db.quoter.Quote(tableName)),
} }
if autoincrCol != "" { if autoincrCol != "" {
sqls = append(sqls, fmt.Sprintf("DROP SEQUENCE %s", seqName(tableName))) sqls = append(sqls, fmt.Sprintf("DROP SEQUENCE %s", seqName(tableName)))