summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-01-29 19:42:39 +0200
committerbell@sanja.is.com.ua <>2003-01-29 19:42:39 +0200
commit214036a7f6c87eb2768002ea2b278764c4ddc05d (patch)
tree185b3adb213d5a97368591628a459b65b72ea537 /sql/item_subselect.cc
parentfd2e31756beaa00a98083b6c10e8e64d3f45a4e5 (diff)
downloadmariadb-git-214036a7f6c87eb2768002ea2b278764c4ddc05d.tar.gz
improving of fields list creation in derived tables and unions
fixed length of fields created in fubselect fixed resolving fields of reduced in derived table subselect
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index ffb4d715159..9a3019ece12 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -161,7 +161,7 @@ void Item_singlerow_subselect::select_transformer(THD *thd,
select_lex->item_list.elements == 1 &&
// TODO: mark subselect items from item list separately
!(select_lex->item_list.head()->type() == FIELD_ITEM ||
- select_lex->item_list.head()->type() == REF_ITEM)
+ select_lex->item_list.head()->type() == REF_ITEM)
)
{
@@ -693,7 +693,7 @@ int subselect_single_select_engine::prepare()
(ORDER*) select_lex->group_list.first,
select_lex->having,
(ORDER*) 0, select_lex,
- select_lex->master_unit(), 0))
+ select_lex->master_unit(), 0, 0))
return 1;
thd->lex.current_select= save_select;
return 0;
@@ -701,7 +701,7 @@ int subselect_single_select_engine::prepare()
int subselect_union_engine::prepare()
{
- return unit->prepare(thd, result);
+ return unit->prepare(thd, result, 0);
}
static Item_result set_row(SELECT_LEX *select_lex, Item * item,