diff options
author | unknown <bar@mysql.com> | 2004-06-11 16:29:16 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-06-11 16:29:16 +0500 |
commit | 5275eb21c25eef0c5b799315da10f26b779fbfe9 (patch) | |
tree | 72245220b637b8d5caf3b8267ea6801af59f0bc7 /sql/sql_string.cc | |
parent | 4047b5ade3b02d73c60eac7ddae7e5e928de7fd3 (diff) | |
download | mariadb-git-5275eb21c25eef0c5b799315da10f26b779fbfe9.tar.gz |
Allocate memory when a character set is requested:
- For simple character sets: from_uni convertion table.
- For UCA: alternative weight arrays.
Use mbminlen instead of MY_CS_NONTEXT
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index f7e4e436495..cf4f94ba966 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -370,7 +370,7 @@ bool String::copy(const char *str, uint32 arg_length, bool String::set_ascii(const char *str, uint32 arg_length) { - if (!(str_charset->state & MY_CS_NONTEXT)) + if (!(str_charset->mbminlen > 1)) { set(str, arg_length, str_charset); return 0; |