Skip to content

Commit

Permalink
*: adapt new api for the executor package (#22644) (#22888)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox authored Feb 25, 2021
1 parent 1ae8d00 commit 29251c8
Show file tree
Hide file tree
Showing 6 changed files with 366 additions and 252 deletions.
2 changes: 1 addition & 1 deletion executor/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (e *DDLExec) executeDropTableOrView(s *ast.DropTableStmt) error {
zap.String("database", fullti.Schema.O),
zap.String("table", fullti.Name.O),
)
sql := fmt.Sprintf("admin check table `%s`.`%s`", fullti.Schema.O, fullti.Name.O)
sql := sqlexec.MustEscapeSQL("admin check table %n.%n", fullti.Schema.O, fullti.Name.O)
_, _, err = e.ctx.(sqlexec.RestrictedSQLExecutor).ExecRestrictedSQL(e.ctx, sql)
if err != nil {
return err
Expand Down
Loading

0 comments on commit 29251c8

Please sign in to comment.