[MDEV-8095] Split Create_field Created: 2015-05-04 Updated: 2021-05-11 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | refactoring | ||
| Issue Links: |
|
||||||||
| Epic Link: | Data type cleanups | ||||||||
| Description |
|
Create_field is a big class and some of its parts are not really used in many contexts. Under terms of this task we will: 1. Move members of Create_field that are needed only at ALTER time into a separate class Alter_column_specification:
2. Move the rest of Create_field members (except field_name) into a separate class Column_specification.
3. Derive Create_field from Column_specification and Alter_column_specification:
Note, Create_field::field_name will be changed from "const char *" to LEX_CSTRING 4. Change data type of sp_variable::field_def and sp_head::m_return_field_def |