1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

cleanup: s/const CHARSET_INFO/CHARSET_INFO/

as CHARSET_INFO is already const, using const on it
is redundant and results in compiler warnings (on Windows)
This commit is contained in:
Sergei Golubchik
2014-11-19 09:13:38 +01:00
parent 0d30423900
commit 2ae7541bcf
20 changed files with 33 additions and 34 deletions

View File

@ -207,7 +207,7 @@ void Explain_query::print_explain_json(select_result_sink *output, bool is_analy
writer.end_object();
const CHARSET_INFO *cs= system_charset_info;
CHARSET_INFO *cs= system_charset_info;
List<Item> item_list;
String *buf= &writer.output;
item_list.push_back(new Item_string(buf->ptr(), buf->length(), cs));
@ -416,7 +416,7 @@ int Explain_union::print_explain(Explain_query *query,
uint8 explain_flags,
bool is_analyze)
{
//const CHARSET_INFO *cs= system_charset_info;
//CHARSET_INFO *cs= system_charset_info;
char table_name_buffer[SAFE_NAME_LEN];
/* print all UNION children, in order */
@ -762,7 +762,7 @@ void Explain_table_access::push_extra(enum explain_extra_tag extra_tag)
void Explain_table_access::fill_key_str(String *key_str, bool is_json) const
{
const CHARSET_INFO *cs= system_charset_info;
CHARSET_INFO *cs= system_charset_info;
bool is_hj= (type == JT_HASH || type == JT_HASH_NEXT ||
type == JT_HASH_RANGE || type == JT_HASH_INDEX_MERGE);
const char *hash_key_prefix= "#hash#";
@ -882,7 +882,7 @@ int Explain_table_access::print_explain(select_result_sink *output, uint8 explai
uint select_id, const char *select_type,
bool using_temporary, bool using_filesort)
{
//const CHARSET_INFO *cs= system_charset_info;
//CHARSET_INFO *cs= system_charset_info;
List<Item> item_list;
Item *item_null= new Item_null();