summaryrefslogtreecommitdiff
path: root/mysys/charset.c
diff options
context:
space:
mode:
authorunknown <bar@bar.intranet.mysql.r18.ru>2003-12-24 16:04:26 +0400
committerunknown <bar@bar.intranet.mysql.r18.ru>2003-12-24 16:04:26 +0400
commit56f484056355118e8ae5f5f22a45b3e3a64db885 (patch)
treedce876cfc3e6ec4aba43687d541cfad280795949 /mysys/charset.c
parentb72efef6f8eccdb7e47bac298668f31086853657 (diff)
downloadmariadb-git-56f484056355118e8ae5f5f22a45b3e3a64db885.tar.gz
charset.c:
he mysqld server crashes if issued a command select convert(...) with a non-compiled character set: mysys/charset.c: he mysqld server crashes if issued a command select convert(...) with a non-compiled character set:
Diffstat (limited to 'mysys/charset.c')
-rw-r--r--mysys/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index 1fe926a51d6..f8c8237c88b 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -539,8 +539,8 @@ static CHARSET_INFO *get_internal_charset(uint cs_number, myf flags)
{
strxmov(get_charsets_dir(buf), cs->csname, ".xml", NullS);
my_read_charset_file(buf,flags);
- cs= (cs->state & MY_CS_LOADED) ? cs : NULL;
}
+ cs= (cs->state & MY_CS_AVAILABLE) ? cs : NULL;
pthread_mutex_unlock(&THR_LOCK_charset);
return cs;
}