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 | 177522a4fe9847a8abd44288711aa07f4809ac32 (patch) | |
tree | aadb3f09efcb545b30b736b497f16da7b06c172a /mysql-test/t | |
parent | 92c7521f27c708e45f346b74d98771fa85e95a04 (diff) | |
download | mariadb-git-177522a4fe9847a8abd44288711aa07f4809ac32.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 'mysql-test/t')
-rw-r--r-- | mysql-test/t/ctype_ldml.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/ctype_ldml.test b/mysql-test/t/ctype_ldml.test index 0395de273de..9ab458ba516 100644 --- a/mysql-test/t/ctype_ldml.test +++ b/mysql-test/t/ctype_ldml.test @@ -46,6 +46,14 @@ SELECT * FROM t1 WHERE LOWER(a)=LOWER('N'); DROP TABLE t1; --echo # +--echo # Bug#51976 LDML collations issue (cyrillic example) +--echo # +CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_test_ci); +INSERT INTO t1 (a) VALUES ('Hello'); +SELECT a, UPPER(a), LOWER(a) FROM t1; +DROP TABLE t1; + +--echo # --echo # Bug#43827 Server closes connections and restarts --echo # # Crash happened with a user-defined utf8 collation, |