mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Strings which appear without charset context,
like number-to-string-convertion-result, now takes current database character set, instead of thread character set. This makes it easy to be SQL99 conformant and 4.0 compatible. Item->thd_charset() is renamed to Item->default_charset() as old name doesn't describe its nature anymore.
This commit is contained in:
@ -372,7 +372,7 @@ String *Item_exists_subselect::val_str(String *str)
|
||||
reset();
|
||||
return 0;
|
||||
}
|
||||
str->set(value,thd_charset());
|
||||
str->set(value,default_charset());
|
||||
return str;
|
||||
}
|
||||
|
||||
@ -415,7 +415,7 @@ String *Item_in_subselect::val_str(String *str)
|
||||
null_value= 1;
|
||||
return 0;
|
||||
}
|
||||
str->set(value,thd_charset());
|
||||
str->set(value,default_charset());
|
||||
return str;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user