-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ddl: add admin_checksum_table compatibility for temporary table #24867
Changes from 6 commits
5f6d1f1
8ed172b
60cbae1
de30d79
ccbf4ab
4070e01
6ffd9e2
fbf5326
3b169d1
a47b3a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -577,8 +577,12 @@ func (p *preprocessor) checkAdminCheckTableGrammar(stmt *ast.AdminStmt) { | |||||
return | ||||||
} | ||||||
tempTableType := tableInfo.Meta().TempTableType | ||||||
if stmt.Tp == ast.AdminCheckTable && tempTableType != model.TempTableNone { | ||||||
p.err = infoschema.ErrAdminCheckTable | ||||||
if (stmt.Tp == ast.AdminCheckTable || stmt.Tp == ast.AdminChecksumTable) && tempTableType != model.TempTableNone { | ||||||
Howie59 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
if stmt.Tp == ast.AdminChecksumTable { | ||||||
p.err = ErrOptOnTemporaryTable.GenWithStackByArgs("admin checksum table") | ||||||
} else { | ||||||
p.err = infoschema.ErrAdminCheckTable | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
} | ||||||
return | ||||||
} | ||||||
} | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove debug log please ...