diff options
author | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-14 20:52:48 +0400 |
---|---|---|
committer | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-14 20:52:48 +0400 |
commit | ee1ef8c58c9df9a62f7a0cc3dee6c2f705c8eb44 (patch) | |
tree | 9f7fe2c153a320e3fe2fadf7f38bbdf05b661dad /mysys/charset.c | |
parent | 68375e0f008d109f574491bd3b0eb2184e6f3ad2 (diff) | |
download | mariadb-git-ee1ef8c58c9df9a62f7a0cc3dee6c2f705c8eb44.tar.gz |
use String->charset instead of default_charset_info
client/mysql.cc:
default_charset_info -> system_charset_info
include/m_ctype.h:
Remove old ctype
mysys/charset.c:
Initialize fields after dynamic charset loading
sql/sql_parse.cc:
default_charset_info -> system_charset_info
Diffstat (limited to 'mysys/charset.c')
-rw-r--r-- | mysys/charset.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysys/charset.c b/mysys/charset.c index 1d84bb67d68..de6ccbf7ea9 100644 --- a/mysys/charset.c +++ b/mysys/charset.c @@ -329,6 +329,14 @@ static CHARSET_INFO *add_charset(uint cs_number, const char *cs_name, myf flags) memcpy((char*) cs->to_upper, (char*) tmp_to_upper, sizeof(tmp_to_upper)); memcpy((char*) cs->sort_order, (char*) tmp_sort_order, sizeof(tmp_sort_order)); + + cs->caseup_str = my_caseup_str_8bit; + cs->casedn_str = my_casedn_str_8bit; + cs->caseup = my_caseup_8bit; + cs->casedn = my_casedn_8bit; + cs->strcasecmp = my_strcasecmp_8bit; + cs->strncasecmp = my_strncasecmp_8bit; + insert_dynamic(&cs_info_table, (gptr) &cs); return cs; } @@ -396,6 +404,7 @@ my_bool set_default_charset(uint cs, myf flags) DBUG_RETURN(TRUE); /* error */ } default_charset_info = new_charset; + system_charset_info = new_charset; DBUG_RETURN(FALSE); } @@ -428,6 +437,7 @@ my_bool set_default_charset_by_name(const char *cs_name, myf flags) } default_charset_info = new_charset; + system_charset_info = new_charset; DBUG_RETURN(FALSE); } |