after merge fix

parent d5a7a6ec
...@@ -161,13 +161,12 @@ Item_singlerow_subselect::Item_singlerow_subselect(st_select_lex *select_lex) ...@@ -161,13 +161,12 @@ Item_singlerow_subselect::Item_singlerow_subselect(st_select_lex *select_lex)
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
Item_maxmin_subselect::Item_maxmin_subselect(THD *thd, Item_maxmin_subselect::Item_maxmin_subselect(st_select_lex *select_lex,
st_select_lex *select_lex,
bool max) bool max)
:Item_singlerow_subselect() :Item_singlerow_subselect()
{ {
DBUG_ENTER("Item_maxmin_subselect::Item_maxmin_subselect"); DBUG_ENTER("Item_maxmin_subselect::Item_maxmin_subselect");
init(thd, select_lex, new select_max_min_finder_subselect(this, max)); init(select_lex, new select_max_min_finder_subselect(this, max));
max_columns= 1; max_columns= 1;
maybe_null= 1; maybe_null= 1;
max_columns= 1; max_columns= 1;
...@@ -542,14 +541,14 @@ Item_in_subselect::single_value_transformer(JOIN *join, ...@@ -542,14 +541,14 @@ Item_in_subselect::single_value_transformer(JOIN *join,
{ {
DBUG_RETURN(RES_ERROR); DBUG_RETURN(RES_ERROR);
} }
subs= new Item_singlerow_subselect(thd, select_lex); subs= new Item_singlerow_subselect(select_lex);
} }
else else
{ {
// remove LIMIT placed by ALL/ANY subquery // remove LIMIT placed by ALL/ANY subquery
select_lex->master_unit()->global_parameters->select_limit= select_lex->master_unit()->global_parameters->select_limit=
HA_POS_ERROR; HA_POS_ERROR;
subs= new Item_maxmin_subselect(thd, select_lex, subs= new Item_maxmin_subselect(select_lex,
(func == &Item_bool_func2::le_creator || (func == &Item_bool_func2::le_creator ||
func == &Item_bool_func2::lt_creator)); func == &Item_bool_func2::lt_creator));
} }
......
...@@ -158,7 +158,7 @@ class Item_singlerow_subselect :public Item_subselect ...@@ -158,7 +158,7 @@ class Item_singlerow_subselect :public Item_subselect
class Item_maxmin_subselect: public Item_singlerow_subselect class Item_maxmin_subselect: public Item_singlerow_subselect
{ {
public: public:
Item_maxmin_subselect(THD *thd, st_select_lex *select_lex, bool max); Item_maxmin_subselect(st_select_lex *select_lex, bool max);
Item_maxmin_subselect(Item_maxmin_subselect *item) Item_maxmin_subselect(Item_maxmin_subselect *item)
:Item_singlerow_subselect(item) {} :Item_singlerow_subselect(item) {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment