From 02d8b9ba56082d26b14808f6618e098c72e083fb Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 26 May 2002 22:50:32 +0300 Subject: added depended subselect processing mysql-test/r/subselect.result: depended subselect test mysql-test/t/subselect.test: depended subselect test sql/item.cc: resolving field names in depended queries sql/item_subselect.cc: move optimization just before execution, because we can't optimize inner depended subselect if have not optimized outer subselect sql/item_subselect.h: move optimization just before execution sql/sql_lex.h: some inline methods to hide internal SELECT_LEX structures sql/sql_select.cc: fixed error --- sql/sql_select.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/sql_select.h') diff --git a/sql/sql_select.h b/sql/sql_select.h index ba27c5b4b3b..84d4207bdb5 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -196,6 +196,8 @@ class JOIN :public Sql_alloc{ my_bool test_function_query; // need to return select items 1 row const char *zero_result_cause; // not 0 if exec must return zero result + + my_bool union_part; // this subselect is part of union JOIN(THD *thd, List &fields, ulong select_options, select_result *result): @@ -236,6 +238,7 @@ class JOIN :public Sql_alloc{ ORDER *proc_param, SELECT_LEX *select, SELECT_LEX_UNIT *unit); int optimize(); int global_optimize(); + int reinit(); void exec(); int cleanup(THD *thd); }; -- cgit v1.2.1