mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 06:35:33 +02:00
Post review fixes of MWL#148 (moving max/min optimization in optimize phase).
sql/item_subselect.cc: Cleanup. Comments added. sql/item_subselect.h: Cleanup. sql/mysql_priv.h: Comments added. sql/opt_subselect.cc: The function renamed and turned to method. Comments added. sql/opt_subselect.h: The function turned to method of JOIN. sql/sql_select.cc: Comment added. The function turned to method. sql/sql_select.h: The function turned to method.
This commit is contained in:
parent
4aa1ad2b6d
commit
18d08eeacc
7 changed files with 114 additions and 58 deletions
|
|
@ -678,17 +678,28 @@ enabled by default, add OPTIMIZER_SWITCH_MATERIALIZATION
|
|||
*/
|
||||
#define CONTEXT_ANALYSIS_ONLY_DERIVED 4
|
||||
|
||||
// uncachable cause
|
||||
/*
|
||||
Uncachable causes:
|
||||
|
||||
This subquery has fields from outer query (put by user)
|
||||
*/
|
||||
#define UNCACHEABLE_DEPENDENT_GENERATED 1
|
||||
/* This subquery contains functions with random result */
|
||||
#define UNCACHEABLE_RAND 2
|
||||
/* This subquery contains functions with side effect */
|
||||
#define UNCACHEABLE_SIDEEFFECT 4
|
||||
/// forcing to save JOIN for explain
|
||||
/* Forcing to save JOIN tables for explain */
|
||||
#define UNCACHEABLE_EXPLAIN 8
|
||||
/* For uncorrelated SELECT in an UNION with some correlated SELECTs */
|
||||
#define UNCACHEABLE_UNITED 16
|
||||
#define UNCACHEABLE_CHECKOPTION 32
|
||||
/*
|
||||
This subquery has fields from outer query injected during
|
||||
transformation process
|
||||
*/
|
||||
#define UNCACHEABLE_DEPENDENT_INJECTED 64
|
||||
|
||||
/* This subquery has fields from outer query (any nature) */
|
||||
#define UNCACHEABLE_DEPENDENT (UNCACHEABLE_DEPENDENT_GENERATED | \
|
||||
UNCACHEABLE_DEPENDENT_INJECTED)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue