diff options
author | unknown <knielsen@knielsen-hq.org> | 2010-05-31 10:43:34 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2010-05-31 10:43:34 +0200 |
commit | 0fc39acb8125fae95062e7b680b022b075a308c3 (patch) | |
tree | cf991484ab999e60eb9b33d81733fca16b368cf9 /mysys/charset.c | |
parent | e6eab96555d8cf70cbe6c8a94956855a0b5eca43 (diff) | |
parent | 80ba8556e772fd7e4eb369c64bb32ca44f93e221 (diff) | |
download | mariadb-git-0fc39acb8125fae95062e7b680b022b075a308c3.tar.gz |
Automerge MariaDB 5.1.47 release into main.
Diffstat (limited to 'mysys/charset.c')
-rw-r--r-- | mysys/charset.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/charset.c b/mysys/charset.c index dd27cb45a5f..8d2f68b7bbf 100644 --- a/mysys/charset.c +++ b/mysys/charset.c @@ -245,6 +245,8 @@ static int add_collation(CHARSET_INFO *cs) if (cs_copy_data(all_charsets[cs->number],cs)) return MY_XML_ERROR; + newcs->caseup_multiply= newcs->casedn_multiply= 1; + if (!strcmp(cs->csname,"ucs2") ) { #if defined(HAVE_CHARSET_ucs2) && defined(HAVE_UCA_COLLATIONS) @@ -403,6 +405,7 @@ static void *cs_alloc(size_t size) static my_pthread_once_t charsets_initialized= MY_PTHREAD_ONCE_INIT; +static my_pthread_once_t charsets_template= MY_PTHREAD_ONCE_INIT; static void init_available_charsets(void) { @@ -430,6 +433,11 @@ static void init_available_charsets(void) } +void free_charsets(void) +{ + charsets_initialized= charsets_template; +} + uint get_collation_number(const char *name) { my_pthread_once(&charsets_initialized, init_available_charsets); |