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/item_create.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/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 74f36de11ac..53d4f14d1ee 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -373,7 +373,7 @@ Item *create_func_space(Item *a) CHARSET_INFO *cs= current_thd->variables.collation_connection; Item *sp; - if (cs->state & MY_CS_NONTEXT) + if (cs->mbminlen > 1) { sp= new Item_string("",0,cs); if (sp) |