mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03: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:
@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user