Skip to content

Commit

Permalink
fix analyze table (pingcap#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
holys authored and huachaohuang committed Mar 29, 2018
1 parent 9c2f78a commit 5def97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingest/restore/restore.go
Expand Up @@ -286,7 +286,7 @@ func analyzeTable(dsn config.DBStore, tables []string) error {

for _, table := range tables {
log.Infof("analyze table %s", table)
_, err := db.Exec("ANALYZE TABLE %s", table)
_, err := db.Exec(fmt.Sprintf("ANALYZE TABLE %s", table))
if err != nil {
log.Errorf("analyze table %s error %s", table, errors.ErrorStack(err))
continue
Expand Down

0 comments on commit 5def97a

Please sign in to comment.