Commit 6d535030 authored by unknown's avatar unknown

set_var.cc, sql_table.cc, handler.cc, field.cc:

  Less default_charset_info


sql/field.cc:
  Less default_charset_info
sql/handler.cc:
  Less default_charset_info
sql/sql_table.cc:
  Less default_charset_info
sql/set_var.cc:
  Less default_charset_info
parent 8a7d862c
...@@ -4549,7 +4549,7 @@ void Field_geom::set_key_image(char *buff,uint length,CHARSET_INFO *cs) ...@@ -4549,7 +4549,7 @@ void Field_geom::set_key_image(char *buff,uint length,CHARSET_INFO *cs)
void Field_geom::sql_type(String &res) const void Field_geom::sql_type(String &res) const
{ {
res.set("geometry", 8, default_charset_info); res.set("geometry", 8, &my_charset_latin1);
} }
int Field_blob::key_cmp(const byte *key_ptr, uint max_key_length) int Field_blob::key_cmp(const byte *key_ptr, uint max_key_length)
......
...@@ -689,7 +689,7 @@ void handler::print_error(int error, myf errflag) ...@@ -689,7 +689,7 @@ void handler::print_error(int error, myf errflag)
{ {
/* Write the dupplicated key in the error message */ /* Write the dupplicated key in the error message */
char key[MAX_KEY_LENGTH]; char key[MAX_KEY_LENGTH];
String str(key,sizeof(key),default_charset_info); String str(key,sizeof(key),system_charset_info);
key_unpack(&str,table,(uint) key_nr); key_unpack(&str,table,(uint) key_nr);
uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY)); uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY));
if (str.length() >= max_length) if (str.length() >= max_length)
......
...@@ -1074,7 +1074,7 @@ byte *sys_var_thd_sql_mode::value_ptr(THD *thd, enum_var_type type) ...@@ -1074,7 +1074,7 @@ byte *sys_var_thd_sql_mode::value_ptr(THD *thd, enum_var_type type)
{ {
ulong val; ulong val;
char buff[256]; char buff[256];
String tmp(buff, sizeof(buff), default_charset_info); String tmp(buff, sizeof(buff), &my_charset_latin1);
my_bool found= 0; my_bool found= 0;
tmp.length(0); tmp.length(0);
......
...@@ -247,7 +247,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists, ...@@ -247,7 +247,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
{ {
if (wrong_tables.length()) if (wrong_tables.length())
wrong_tables.append(','); wrong_tables.append(',');
wrong_tables.append(String(table->real_name,default_charset_info)); wrong_tables.append(String(table->real_name,system_charset_info));
} }
} }
thd->tmp_table_used= tmp_table_deleted; thd->tmp_table_used= tmp_table_deleted;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment