Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 authored and ti-chi-bot committed Aug 24, 2021
1 parent 4a08f8b commit a91674e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions v4/export/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ func ListAllDatabasesTables(tctx *tcontext.Context, db *sql.Conn, databaseNames
return nil, errors.Annotatef(err, "sql: %s", query)
}
case listTableByShowFullTables:
selectedTableType := make(map[TableType]struct{})
for _, tableType = range tableTypes {
selectedTableType[tableType] = struct{}{}
}
for _, schema = range databaseNames {
dbTables[schema] = make([]*TableInfo, 0)
query := fmt.Sprintf("SHOW FULL TABLES FROM `%s` WHERE %s",
Expand All @@ -235,9 +231,6 @@ func ListAllDatabasesTables(tctx *tcontext.Context, db *sql.Conn, databaseNames
if err2 != nil {
return nil, errors.Trace(err2)
}
if _, ok := selectedTableType[tableType]; !ok {
continue
}
dbTables[schema] = append(dbTables[schema], &TableInfo{table, avgRowLength, tableType})
}
}
Expand Down

0 comments on commit a91674e

Please sign in to comment.