Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
N/A
-
None
Description
Replace all class members charsetNumber to CHARSET_INFO pointer
Many classes store character set and collation information in an integer member "charsetNumber".
Some classes have two members:
- uint32_t charsetNumber
- CHARSET_INFO *charset
The former is resolved occasionally from the latter using the get_charset() function.
Let's remove all numberic members charsetNumber. We should always use CHARSET_INFO for the code simplicity.
Conversion from a CHARSET_INFO pointer to a number should only happen in serialization.
Resolving a number to a CHARSET_INFO pointer should only happen in deserialization.