We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mysql> ALTER INSTANCE RELOAD TLS; ERROR 1227 (42000): SUPER
This is not a correct error message.
I think this might fix it:
diff --git a/pkg/planner/core/planbuilder.go b/pkg/planner/core/planbuilder.go index 4192c0c0c1..80da51bc92 100644 --- a/pkg/planner/core/planbuilder.go +++ b/pkg/planner/core/planbuilder.go @@ -3310,7 +3310,7 @@ func (b *PlanBuilder) buildSimple(ctx context.Context, node ast.StmtNode) (Plan, err := ErrSpecificAccessDenied.GenWithStackByArgs("RELOAD") b.visitInfo = appendVisitInfo(b.visitInfo, mysql.ReloadPriv, "", "", "", err) case *ast.AlterInstanceStmt: - err := ErrSpecificAccessDenied.GenWithStack("SUPER") + err := ErrSpecificAccessDenied.GenWithStackByArgs("SUPER") b.visitInfo = appendVisitInfo(b.visitInfo, mysql.SuperPriv, "", "", "", err) case *ast.RenameUserStmt: err := ErrSpecificAccessDenied.GenWithStackByArgs("CREATE USER")
Originally posted by @dveeden in #50680 (comment)
The text was updated successfully, but these errors were encountered:
planner: Correct error message for ALTER INSTANCE (#50700)
4abe192
close #50699
Successfully merging a pull request may close this issue.
This is not a correct error message.
I think this might fix it:
Originally posted by @dveeden in #50680 (comment)
The text was updated successfully, but these errors were encountered: