Details
-
Type:
Technical task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.2.2
-
Component/s: Character Sets
-
Labels:None
-
Sprint:10.2.2-3, 10.2.2-2
Description
conf_to_src duplicates the ctype, to_lower, to_upper and tab_to_uni arrays when dumping data from the XML files in /sql/share/charsets/ to ctype-extra.c
For example, the ctype map from cp1251.xml is dumped five times:
static const uchar ctype_cp1251_bulgarian_ci[] = .. |
static const uchar ctype_cp1251_ukrainian_ci[] = .. |
static const uchar ctype_cp1251_bin[] = .. |
static const uchar ctype_cp1251_general_ci[] = .. |
static const uchar ctype_cp1251_general_cs[] = .. |
After adding MDEV-9711 the number of duplicate data will grow even further two times.
We'll change conf_to_src.c to detect duplicate arrays. Non-primary collations will reuse arrays from the primary collation if the data is the same.
Attachments
Issue Links
- blocks
-
MDEV-9711 NO PAD collations
-
- Closed
-