diff options
author | Alexander Barkov <bar@mysql.com> | 2009-10-19 18:23:53 +0500 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2009-10-19 18:23:53 +0500 |
commit | ead175bb07a9101488fa59794900f65e3186a88d (patch) | |
tree | 77504351002cb21e227555619886d3708a824108 /strings | |
parent | b11e374b6e9bac141bd3690ccbc4c9960caeec4f (diff) | |
download | mariadb-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.c | 2 |
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*)); |