summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mysql.com>2009-12-07 16:11:53 +0400
committerAlexander Barkov <bar@mysql.com>2009-12-07 16:11:53 +0400
commit6e7cffac297b7ef5c5078449bae47dff8d7e305c (patch)
treeff4878c9cabf7459ea7ceebf159346be5e984579 /mysql-test/r
parentcf2e674656a73c07917ea9b3a062f73f18faecfb (diff)
downloadmariadb-git-6e7cffac297b7ef5c5078449bae47dff8d7e305c.tar.gz
Bug#47756 Setting 2byte collation ID with 'set names' crashes the server
The problem is not actually related to 2byte collation IDs. The same crash happens if you change the collation ID in mysql-test/str_data/Index.xml to a value smaller than 256. Crash happened in SQL parser, because the "ident_map" and "state_map" arrays were not initialized in loadable utf8 collations. Fix: adding proper initialization of the "ident_map" and "state_map" members for loadable utf8 collations.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/ctype_ldml.result5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/ctype_ldml.result b/mysql-test/r/ctype_ldml.result
index 222351cd5e2..3373e31539f 100644
--- a/mysql-test/r/ctype_ldml.result
+++ b/mysql-test/r/ctype_ldml.result
@@ -402,3 +402,8 @@ s1
a
b
DROP TABLE t1;
+SET NAMES utf8 COLLATE utf8_phone_ci;
+SHOW COLLATION LIKE 'utf8_phone_ci';
+Collation Charset Id Default Compiled Sortlen
+utf8_phone_ci utf8 352 8
+SET NAMES utf8;