mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user