Skip to content

Commit b94486c

Browse files
authored
fix: change from database to table (#37)
1 parent 14fbd14 commit b94486c

File tree

4 files changed

+92
-90
lines changed

4 files changed

+92
-90
lines changed

ast/dml.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,9 @@ func (n *ShowStmt) Restore(ctx *format.RestoreCtx) error {
27352735
}
27362736
case ShowDatabaseRules:
27372737
ctx.WriteKeyWord("DATABASE RULES FROM ")
2738-
ctx.WriteName(n.DBName)
2738+
if err := n.Table.Restore(ctx); err != nil {
2739+
return errors.Annotate(err, "An error occurred while restore ShowDatabaseRules.Table")
2740+
}
27392741
case ShowShardingTable:
27402742
ctx.WriteKeyWord("SHARDING TABLE FROM ")
27412743
ctx.WriteName(n.DBName)

0 commit comments

Comments
 (0)