Skip to content

Commit

Permalink
Merge pull request #494 from alextinng/main
Browse files Browse the repository at this point in the history
修复表名为关键字时审核任务无法正常展示的问题
  • Loading branch information
HuangWeiCen authored May 6, 2022
2 parents 561e2f4 + 7493474 commit 0a12142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqle/driver/mysql/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func Ping(entry *logrus.Entry, instance *mdriver.DSN) error {
}

func (c *Executor) ShowCreateTable(tableName string) (string, error) {
result, err := c.Db.Query(fmt.Sprintf("show create table %s", tableName))
result, err := c.Db.Query(fmt.Sprintf("show create table `%s`", tableName))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 0a12142

Please sign in to comment.