Skip to content

Commit

Permalink
fix: change from database to table (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvnszn authored Jun 5, 2023
1 parent 14fbd14 commit b94486c
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 90 deletions.
4 changes: 3 additions & 1 deletion ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,9 @@ func (n *ShowStmt) Restore(ctx *format.RestoreCtx) error {
}
case ShowDatabaseRules:
ctx.WriteKeyWord("DATABASE RULES FROM ")
ctx.WriteName(n.DBName)
if err := n.Table.Restore(ctx); err != nil {
return errors.Annotate(err, "An error occurred while restore ShowDatabaseRules.Table")
}
case ShowShardingTable:
ctx.WriteKeyWord("SHARDING TABLE FROM ")
ctx.WriteName(n.DBName)
Expand Down
Loading

0 comments on commit b94486c

Please sign in to comment.