This commit is contained in:
Lunny Xiao 2021-08-24 15:40:38 +08:00
parent 84d1a51434
commit 7419579615
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func createEngine(dbType, connStr string) error {
if err != nil { if err != nil {
return err return err
} }
var tableNames []interface{} var tableNames = make([]interface{}, 0, len(tables))
for _, table := range tables { for _, table := range tables {
tableNames = append(tableNames, table.Name) tableNames = append(tableNames, table.Name)
} }