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
commitead175bb07a9101488fa59794900f65e3186a88d (patch)
tree77504351002cb21e227555619886d3708a824108 /strings
parentb11e374b6e9bac141bd3690ccbc4c9960caeec4f (diff)
downloadmariadb-git-ead175bb07a9101488fa59794900f65e3186a88d.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*));