Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaaaaaang committed Aug 19, 2024
1 parent 17f2eb2 commit 446f3e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
2 changes: 1 addition & 1 deletion collector/plan_replayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (c *PlanReplayerCollectorOptions) collectDBVars(zw *zip.Writer, db *sql.DB)
*/
func (c *PlanReplayerCollectorOptions) collectTableStructures(zw *zip.Writer, db *sql.DB) (errs []string) {
createTblOrView := func(isTable bool, dbName, name string) error {
rows, err := db.Query(fmt.Sprintf("show create table %s.%s", dbName, name))
rows, err := db.Query(fmt.Sprintf("show create table `%s`.`%s`", dbName, name))
if err != nil {
return fmt.Errorf("db:%v, table:%v, err:%v", dbName, name, err.Error())
}
Expand Down
50 changes: 0 additions & 50 deletions pkg/utils/logs.go

This file was deleted.

0 comments on commit 446f3e1

Please sign in to comment.