diff options
author | Alexander Barkov <bar@mysql.com> | 2010-03-22 16:27:59 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2010-03-22 16:27:59 +0400 |
commit | 84fc3da40fc1244d4ee39db43dcf226e100e0724 (patch) | |
tree | aadb3f09efcb545b30b736b497f16da7b06c172a /mysys | |
parent | be16e48633b316732fbfc4e172966edd2b090ab5 (diff) | |
download | mariadb-git-84fc3da40fc1244d4ee39db43dcf226e100e0724.tar.gz |
Bug #51976 LDML collations issue
Problem: caseup_multiply and casedn_multiply members
were not initialized for a dynamic collation, so
UPPER() and LOWER() functions returned empty strings.
Fix: initializing the members properly.
Adding tests:
mysql-test/r/ctype_ldml.result
mysql-test/t/ctype_ldml.test
Applying the fix:
mysys/charset.c
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/charset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/charset.c b/mysys/charset.c index 9678febc9ba..f15c445adde 100644 --- a/mysys/charset.c +++ b/mysys/charset.c @@ -245,6 +245,8 @@ static int add_collation(CHARSET_INFO *cs) if (cs_copy_data(all_charsets[cs->number],cs)) return MY_XML_ERROR; + newcs->caseup_multiply= newcs->casedn_multiply= 1; + if (!strcmp(cs->csname,"ucs2") ) { #if defined(HAVE_CHARSET_ucs2) && defined(HAVE_UCA_COLLATIONS) |