mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 00:24:30 +02:00
fixed bug in subselect value storing
mysql-test/r/subselect.result: test for bug in subselect value storing mysql-test/t/subselect.test: test for bug in subselect value storing
This commit is contained in:
parent
16f5d95308
commit
261c22a87a
5 changed files with 24 additions and 6 deletions
|
|
@ -884,9 +884,14 @@ bool select_singleval_subselect::send_data(List<Item> &items)
|
|||
it->decimals= val_item->decimals;
|
||||
it->binary= val_item->binary;
|
||||
it->int_value= val_item->val_int();
|
||||
String *s= val_item->val_str(&it->str_value);
|
||||
if (s != &it->str_value)
|
||||
it->str_value.set(*s, 0, s->length());
|
||||
String *s= val_item->val_str(&it->string_value);
|
||||
if (s != &it->string_value)
|
||||
{
|
||||
it->string_value.set(*s, 0, s->length());
|
||||
}
|
||||
// TODO: remove when correct charset handling appeared for Item
|
||||
it->str_value.set(*s, 0, s->length()); // store charset
|
||||
|
||||
it->res_type= val_item->result_type();
|
||||
}
|
||||
it->assigned(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue