Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions pkg/parser/ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -3379,23 +3379,29 @@ func (n *ShowStmt) Restore(ctx *format.RestoreCtx) error {
ctx.WritePlainf("%d", *n.ImportJobID)
} else {
ctx.WriteKeyWord("IMPORT JOBS")
restoreShowLikeOrWhereOpt()
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
}
case ShowImportGroups:
if n.ShowGroupKey != "" {
ctx.WriteKeyWord("IMPORT GROUP ")
ctx.WriteString(n.ShowGroupKey)
} else {
ctx.WriteKeyWord("IMPORT GROUPS")
restoreShowLikeOrWhereOpt()
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
}
case ShowDistributionJobs:
if n.DistributionJobID != nil {
ctx.WriteKeyWord("DISTRIBUTION JOB ")
ctx.WritePlainf("%d", *n.DistributionJobID)
} else {
ctx.WriteKeyWord("DISTRIBUTION JOBS")
restoreShowLikeOrWhereOpt()
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
}
// ShowTargetFilterable
default:
Expand Down Expand Up @@ -3522,7 +3528,9 @@ func (n *ShowStmt) Restore(ctx *format.RestoreCtx) error {
default:
return errors.New("Unknown ShowStmt type")
}
restoreShowLikeOrWhereOpt()
if err := restoreShowLikeOrWhereOpt(); err != nil {
return err
}
}
return nil
}
Expand Down