1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-8686 A user defined collation utf8_confusables doesn't work

The collation customization code for the UCA (Unicode Collation Alrorithm)
based collations now allows to reset to and shift of characters with
implicit weights. Previously reset/shift worked only for the characters
with explicit DUCET weights. An attempt to use reset/shift with
character with implicit weights made the server crash.
This commit is contained in:
Alexander Barkov
2016-06-23 14:25:48 +04:00
parent 3e03b89b0a
commit 25e68c5e46
4 changed files with 191 additions and 21 deletions

View File

@@ -1117,6 +1117,16 @@
</rules>
</collation>
<collation name="utf8_implicit_weights_ci" id="338">
<rules>
<reset>\u3400</reset><i>b</i>
<reset>a</reset><i>\u3561</i>
<reset>c</reset><i>\u1500</i>
<reset>\u3600</reset><i>\u1501</i>
<reset>\u3700</reset><i>\u3701</i>
</rules>
</collation>
</charset>
</charsets>