diff options
author | unknown <bell@sanja.is.com.ua> | 2002-05-26 22:50:32 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-05-26 22:50:32 +0300 |
commit | 02d8b9ba56082d26b14808f6618e098c72e083fb (patch) | |
tree | 78961c1f59544bcab13595bc9f6600a163d632ff /sql/sql_select.h | |
parent | 3a6483fe4bfc53293b4b7e03f6fda7515bcf9b7f (diff) | |
download | mariadb-git-02d8b9ba56082d26b14808f6618e098c72e083fb.tar.gz |
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
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<Item> &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); }; |