From 3c7daece76ab9ee97322db36b446d888c4e1ac7a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 9 Mar 2020 10:30:41 +0800 Subject: [PATCH] Fix quote --- dialects/oracle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialects/oracle.go b/dialects/oracle.go index 3e8b8630..013de0b3 100644 --- a/dialects/oracle.go +++ b/dialects/oracle.go @@ -558,7 +558,7 @@ func (db *oracle) IsReserved(name string) bool { func (db *oracle) DropTableSQL(tableName, autoincrCol string) ([]string, bool) { var sqls = []string{ - fmt.Sprintf("DROP TABLE `%s`", tableName), + fmt.Sprintf("DROP TABLE %s", db.quoter.Quote(tableName)), } if autoincrCol != "" { sqls = append(sqls, fmt.Sprintf("DROP SEQUENCE %s", seqName(tableName)))