Skip to content

Commit 54605cb

Browse files
JasonZhang95Zhang Aphelios
andauthored
fix: optimize-table statement (#20)
Co-authored-by: Zhang Aphelios <aphelios.zhang@shopee.com>
1 parent 6163029 commit 54605cb

File tree

4 files changed

+2122
-2121
lines changed

4 files changed

+2122
-2121
lines changed

ast/ddl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ type OptimizeTableStmt struct {
19121912
}
19131913

19141914
func (n *OptimizeTableStmt) Restore(ctx *format.RestoreCtx) error {
1915-
ctx.WriteKeyWord("ADMIN OPTIMIZE ")
1915+
ctx.WriteKeyWord("OPTIMIZE ")
19161916
if n.NoWriteToBinlog {
19171917
ctx.WriteKeyWord("NO_WRITE_TO_BINLOG ")
19181918
}

0 commit comments

Comments
 (0)