mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
post-post-review fix (SCRUM)
sql/item.cc: post-post-review fix sql/item_cmpfunc.h: post-post-review fix sql/item_row.cc: post-post-review fix sql/item_subselect.cc: post-post-review fix
This commit is contained in:
parent
be551fd943
commit
3fe840ee07
4 changed files with 8 additions and 3 deletions
|
@ -1290,9 +1290,10 @@ bool Item_cache_row::setup(Item * item)
|
|||
for (uint i= 0; i < item_count; i++)
|
||||
{
|
||||
Item *el= item->el(i);
|
||||
if (!(values[i]= Item_cache::get_cache(el->result_type())))
|
||||
Item_cache *tmp;
|
||||
if (!(tmp= values[i]= Item_cache::get_cache(el->result_type())))
|
||||
return 1;
|
||||
values[i]->setup(el);
|
||||
tmp->setup(el);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -552,11 +552,13 @@ public:
|
|||
~cmp_item_row()
|
||||
{
|
||||
if (comparators)
|
||||
{
|
||||
for (uint i= 0; i < n; i++)
|
||||
{
|
||||
if (comparators[i])
|
||||
delete comparators[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
void store_value(Item *item);
|
||||
int cmp(Item *arg);
|
||||
|
|
|
@ -55,6 +55,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
|
|||
return 1;
|
||||
used_tables_cache |= items[i]->used_tables();
|
||||
if (const_item_cache&= items[i]->const_item() && !with_null)
|
||||
{
|
||||
if (items[i]->cols() > 1)
|
||||
with_null|= items[i]->null_inside();
|
||||
else
|
||||
|
@ -62,6 +63,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
|
|||
items[i]->val_int();
|
||||
with_null|= items[i]->null_value;
|
||||
}
|
||||
}
|
||||
maybe_null|= items[i]->maybe_null;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -604,7 +604,7 @@ void Item_in_subselect::row_value_transformer(THD *thd,
|
|||
}
|
||||
|
||||
if (sl->having || sl->with_sum_func || sl->group_list.first ||
|
||||
!sl->table_list.elements || !sl->table_list.elements)
|
||||
!sl->table_list.elements)
|
||||
sl->having= and_items(sl->having, item);
|
||||
else
|
||||
sl->where= and_items(sl->where, item);
|
||||
|
|
Loading…
Reference in a new issue