summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mysql.com>2009-10-19 18:23:53 +0500
committerAlexander Barkov <bar@mysql.com>2009-10-19 18:23:53 +0500
commit2490873f3ca2bfff63de6d1b72c1d18e742fdb68 (patch)
tree77504351002cb21e227555619886d3708a824108 /strings
parentce9f6dda2c276347609bd2eaa2b16d207991c593 (diff)
downloadmariadb-git-2490873f3ca2bfff63de6d1b72c1d18e742fdb68.tar.gz
Bug#45645 Mysql server close all connection and restart using lower function
Problem: the "caseinfo" member of CHARSET_INFO structure was not initialized for user-defined Unicode collations, which made the server crash. Fix: initializing caseinfo properly.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-uca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/strings/ctype-uca.c b/strings/ctype-uca.c
index 2ea48ddab2f..9fb18c0c472 100644
--- a/strings/ctype-uca.c
+++ b/strings/ctype-uca.c
@@ -7858,6 +7858,8 @@ static my_bool create_tailoring(CHARSET_INFO *cs, void *(*alloc)(size_t))
return 1;
}
+ cs->caseinfo= my_unicase_default;
+
if (!(newweights= (uint16**) (*alloc)(256*sizeof(uint16*))))
return 1;
bzero(newweights, 256*sizeof(uint16*));