1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-10743 LDML: a new syntax to reuse sort order from another 8bit simple collation

This commit is contained in:
Alexander Barkov
2016-09-06 12:37:11 +04:00
parent 8ae65920fa
commit e4f6fd5e12
10 changed files with 324 additions and 28 deletions

View File

@ -319,8 +319,29 @@
</charset>
<charset name="ascii2">
<!--
Notes:
- ascii2 has two collations with "binary" flag.
ctype_ldml.test makes sure that
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET ascii2 BINARY);
uses ascii2_bin2, which is the collation with the least ID.
- ascii2_general_inherited_ci inherits sort order in ascii2.xml
- ascii2_genegal_inherited2_ci inherits sort order directly in this file.
-->
<collation name="ascii2_bin2" id="319" flag="binary"/>
<collation name="ascii2_general_ci" id="320" flag="primary"/>
<collation name="ascii2_bin" id="321" flag="binary"/>
<collation name="ascii2_general_inherited_ci" id="322"/>
<collation name="ascii2_general_inherited2_ci" id="323">
<rules>
<import source="ascii2_general_ci"/>
</rules>
</collation>
<collation name="ascii2_badly_inherited_ci" id="324">
<rules>
<import source="ascii2_non_existing_ci"/>
</rules>
</collation>
</charset>
<charset name="latin1">

View File

@ -116,6 +116,12 @@
<collation name="ascii2_bin" flag="binary"/>
<collation name="ascii2_general_inherited_ci">
<rules>
<import source="ascii2_general_ci"/>
</rules>
</collation>
</charset>
</charsets>