Define all system variables in go type. #11269
Labels
duplicate
Issues or pull requests already exists.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/enhancement
The issue or PR belongs to an enhancement.
Feature Request
Is your feature request related to a problem? Please describe:
For now, all system variables are defined in a map with type string.
If we need a system variable in which the real type is an integer, for example, we must do string conversation. It's hard to code and bad to performance.
Describe the feature you'd like:
We need to define all system variables with their real type in go code. So that all of them can be called directly without performance loss.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
All the system variables defined in MySQL are located in https://github.com/mysql/mysql-server/blob/8.0/sql/system_variables.h#L174
The text was updated successfully, but these errors were encountered: