1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +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:
bar@mysql.com
2004-06-11 16:29:16 +05:00
parent 21c524e712
commit c64d93b274
22 changed files with 608 additions and 560 deletions

View File

@ -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;