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

Use item->charset() instead of item->str_value.charset()

This commit is contained in:
bar@bar.mysql.r18.ru
2002-10-30 17:28:40 +04:00
parent 03e7fc3180
commit bca773e6df
3 changed files with 5 additions and 7 deletions

View File

@ -3624,9 +3624,9 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
case STRING_RESULT:
if (item_sum->max_length > 255)
return new Field_blob(item_sum->max_length,maybe_null,
item->name,table,item->str_value.charset());
item->name,table,item->charset());
return new Field_string(item_sum->max_length,maybe_null,
item->name,table,item->str_value.charset());
item->name,table,item->charset());
}
}
thd->fatal_error=1;