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

Item character set is stored in Item itself now, not in ITem->str_value

This commit is contained in:
bar@bar.mysql.r18.ru
2003-06-24 13:37:11 +05:00
parent f55db178a2
commit 8bd715daa4
3 changed files with 15 additions and 11 deletions

View File

@ -4142,10 +4142,10 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
case STRING_RESULT:
if (item->max_length > 255)
new_field= new Field_blob(item->max_length,maybe_null,
item->name,table,item->str_value.charset());
item->name,table,item->charset());
else
new_field= new Field_string(item->max_length,maybe_null,
item->name,table,item->str_value.charset());
item->name,table,item->charset());
break;
case ROW_RESULT:
default: