-
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
*: support Super_priv #2990
*: support Super_priv #2990
Conversation
LGTM |
@@ -47,6 +47,7 @@ const ( | |||
Grant_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Alter_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Show_db_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Super_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Execute_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Index_priv ENUM('N','Y') NOT NULL DEFAULT 'N', | |||
Create_user_priv ENUM('N','Y') NOT NULL DEFAULT 'N', |
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.
Unify the format.
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.
Seems it github's bug, it's actually formated.
mustExec(c, se, `INSERT INTO mysql.user VALUES ("%", "root1", "admin", "N", "Y", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N")`) | ||
mustExec(c, se, `INSERT INTO mysql.user VALUES ("%", "root11", "", "N", "N", "Y", "N", "N", "N", "N", "N", "Y", "N", "N", "N")`) | ||
mustExec(c, se, `INSERT INTO mysql.user VALUES ("%", "root111", "", "N", "N", "N", "N", "N", "N", "N", "N", "Y", "Y", "Y", "Y")`) | ||
// Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Grant_priv | Alter_priv | Show_db_priv | Super_priv | Execute_priv | Index_priv | Create_user_priv |
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.
Your operation of add column
doesn't use after
, so this schema will be Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Grant_priv | Alter_priv | Show_db_priv | Execute_priv | Index_priv | Create_user_priv | Super_priv
LGTM |
Add
Super_priv
tomysql.user
table and use it.