Skip to content

Commit

Permalink
fix: optimize-table statement (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Aphelios <[email protected]>
  • Loading branch information
JasonZhang95 and Zhang Aphelios authored Nov 18, 2022
1 parent 6163029 commit 54605cb
Show file tree
Hide file tree
Showing 4 changed files with 2,122 additions and 2,121 deletions.
2 changes: 1 addition & 1 deletion ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ type OptimizeTableStmt struct {
}

func (n *OptimizeTableStmt) Restore(ctx *format.RestoreCtx) error {
ctx.WriteKeyWord("ADMIN OPTIMIZE ")
ctx.WriteKeyWord("OPTIMIZE ")
if n.NoWriteToBinlog {
ctx.WriteKeyWord("NO_WRITE_TO_BINLOG ")
}
Expand Down
Loading

0 comments on commit 54605cb

Please sign in to comment.