Fix quote

This commit is contained in:
Lunny Xiao 2020-03-09 10:30:41 +08:00
parent 4e99c291d8
commit 3c7daece76
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,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)))