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:
unknown 2002-03-20 20:52:23 +04:00
commit 9f09ae660b
2 changed files with 4 additions and 0 deletions

View file

@ -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)