diff options
author | Alexander Barkov <bar@mysql.com> | 2009-10-20 12:47:00 +0500 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2009-10-20 12:47:00 +0500 |
commit | 34bbae5725866e157aedced25a8d2d9e6c39a0d1 (patch) | |
tree | 6f004629aef3ed49f34e5f864cfc6a3755a07ee2 /strings | |
parent | e131edc9d4337104fbab030bb0827650954f226a (diff) | |
download | mariadb-git-34bbae5725866e157aedced25a8d2d9e6c39a0d1.tar.gz |
A post fix for BUG#45645 Mysql server close all connection and restart using lower function
- Initialized caseinfo only if it is NULL
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-uca.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/strings/ctype-uca.c b/strings/ctype-uca.c index 9fb18c0c472..6ae0cc3a293 100644 --- a/strings/ctype-uca.c +++ b/strings/ctype-uca.c @@ -7858,7 +7858,8 @@ static my_bool create_tailoring(CHARSET_INFO *cs, void *(*alloc)(size_t)) return 1; } - cs->caseinfo= my_unicase_default; + if (!cs->caseinfo) + cs->caseinfo= my_unicase_default; if (!(newweights= (uint16**) (*alloc)(256*sizeof(uint16*)))) return 1; |