diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-05-14 13:08:22 +0500 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-05-14 13:08:22 +0500 |
commit | bddb1bf359804b58f1139b47b519409a459b83ff (patch) | |
tree | 9f412a87be87b312ec358f27c4d210b6b3936526 /sql | |
parent | 4b2aa6b3592e0587cab1d4bde89854150f529ad4 (diff) | |
download | mariadb-git-bddb1bf359804b58f1139b47b519409a459b83ff.tar.gz |
Bug #3403 Wrong encoding in EXPLAIN SELECT output
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index f9cd5bcbf86..47ecc57cf16 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -9123,7 +9123,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order, THD *thd=join->thd; select_result *result=join->result; Item *item_null= new Item_null(); - CHARSET_INFO *cs= &my_charset_latin1; + CHARSET_INFO *cs= system_charset_info; DBUG_ENTER("select_describe"); DBUG_PRINT("info", ("Select 0x%lx, type %s, message %s", (ulong)join->select_lex, join->select_lex->type, @@ -9190,7 +9190,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order, { if (tmp1.length()) tmp1.append(','); - tmp1.append(table->key_info[j].name); + tmp1.append(table->key_info[j].name, 0, system_charset_info); } } } @@ -9209,7 +9209,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order, { if (tmp2.length()) tmp2.append(','); - tmp2.append((*ref)->name()); + tmp2.append((*ref)->name(), 0, system_charset_info); } item_list.push_back(new Item_string(tmp2.ptr(),tmp2.length(),cs)); } |