mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 02:47:37 +02:00
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
This commit is contained in:
parent
3a6483fe4b
commit
02d8b9ba56
9 changed files with 109 additions and 17 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue