mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Added new method to set string's charset
sql/item_cmpfunc.cc: Fix for IN, when String->charset is empty
This commit is contained in:
parent
bbde41e9f7
commit
9f09ae660b
2 changed files with 4 additions and 0 deletions
|
|
@ -890,6 +890,9 @@ void in_string::set(uint pos,Item *item)
|
|||
String *res=item->val_str(str);
|
||||
if (res && res != str)
|
||||
*str= *res;
|
||||
// BAR TODO: I'm not sure this is absolutely correct
|
||||
if (!str->charset())
|
||||
str->set_charset(default_charset_info);
|
||||
}
|
||||
|
||||
byte *in_string::get_value(Item *item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue