Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Let's do the following:
- Remove a few members from LEX:
- uint grant, grant_to_col, which_columns
- List<LEX_COLUMN> columns
- bool all_privileges
- Rewrite the GRANT/REVOKE grammar to use more bison stack instead of directly accessing these LEX members.
- Add Sql_cmd_grant* and Sql_cmd_revoke* classes.
Rationale:
- Simplifying LEX
- Making the grammar more maintainable (less hidden side effects)
- We should eventually turn all statements to use Sql_cmd. So this is a step forward.
Note, this change will need to introduce some helper classes. At least:
- A class representing the ON clause in GRANT/REVOKE
- A class representing the entire GRANT/REVOKE statement
Attachments
Issue Links
- blocks
-
MDEV-21743 Split up SUPER privilege to smaller privileges
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Description |
Let's do the following:
- Removing a few members from LEX: -- uint grant, grant_to_col, which_columns -- List<LEX_COLUMN> columns -- bool all_privileges - Rewriting GRANT/REVOKE grammar to use more bison stack instead of directly accessing these LEX members. - Add Sql_cmd_grant* and Sql_cmd_revoke* classes. Rationale: - Simplifying LEX - Making the grammar more maintainable (less hidden side effects) - We should eventually turn all statements to use Sql_cmd. So this is a step forward. Note, this change will need to introduce some helper classes. At least: - A class representing the ON clause in GRANT/REVOKE - A class representing the entire GRANT/REVOKE statement |
Let's do the following:
- Remove a few members from LEX: -- uint grant, grant_to_col, which_columns -- List<LEX_COLUMN> columns -- bool all_privileges - Rewrite the GRANT/REVOKE grammar to use more bison stack instead of directly accessing these LEX members. - Add Sql_cmd_grant* and Sql_cmd_revoke* classes. Rationale: - Simplifying LEX - Making the grammar more maintainable (less hidden side effects) - We should eventually turn all statements to use Sql_cmd. So this is a step forward. Note, this change will need to introduce some helper classes. At least: - A class representing the ON clause in GRANT/REVOKE - A class representing the entire GRANT/REVOKE statement |
issue.field.resolutiondate | 2020-02-09 03:08:21.0 | 2020-02-09 03:08:21.362 |
Fix Version/s | 10.5.1 [ 24029 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 103791 ] | MariaDB v4 [ 134180 ] |