summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-12-19 13:35:12 +0200
committerunknown <bell@sanja.is.com.ua>2002-12-19 13:35:12 +0200
commit900a86f63141bf78b3571518264c5076c3330587 (patch)
tree2af383ef3d4c84441e61b93c00b68bf81e9e2ca5 /sql/item_subselect.cc
parent86ccbe3727e6200010d8b054e899ef0653f10672 (diff)
downloadmariadb-git-900a86f63141bf78b3571518264c5076c3330587.tar.gz
Item_in_optimizer is changed to be used with row IN subselect (SCRUM)
removed unused items sql/item.cc: removed unused Items sql/item.h: removed unused Items sql/item_cmpfunc.cc: Item_in_optimizer is changed to be used with row IN subselect sql/item_cmpfunc.h: Item_in_optimizer is changed to be used with row IN subselect sql/item_subselect.cc: Item_in_optimizer is changed to be used with row IN subselect
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 972c265a16b..c4a97731625 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -409,8 +409,9 @@ void Item_in_subselect::single_value_transformer(st_select_lex *select_lex,
As far as Item_ref_in_optimizer do not substitude itself on fix_fields
we can use same item for all selects.
*/
- Item *expr= new Item_ref_in_optimizer(optimizer, (char *)"<no matter>",
- (char*)"<left expr>");
+ Item *expr= new Item_ref(optimizer->get_cache(),
+ (char *)"<no matter>",
+ (char*)"<left expr>");
select_lex->master_unit()->dependent= 1;
for (SELECT_LEX * sl= select_lex; sl; sl= sl->next_select())
{