diff options
author | unknown <bell@sanja.is.com.ua> | 2004-02-01 20:07:44 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-02-01 20:07:44 +0200 |
commit | 1f739ca45eb009de8dadd4503374bc4a5c6bf5c0 (patch) | |
tree | d50de3f64cb91f76d133744d99eca3afb6493c01 /sql/mysql_priv.h | |
parent | 00b2168b8c4f41f48e6de8e2fec46ace253810f9 (diff) | |
download | mariadb-git-1f739ca45eb009de8dadd4503374bc4a5c6bf5c0.tar.gz |
make JOIN::prepare, JOIN::optimize only once for EXPLAIN of derived table
(BUG#2120 sfter merge)
mysql-test/r/derived.result:
correct results of derived tble EXPLAIN
test of "Using Index" with derived tables
mysql-test/t/derived.test:
test of "Using Index" with derived tables
sql/mysql_priv.h:
way to force derived table save JOIN after execution
sql/sql_derived.cc:
way to force derived table save JOIN after execution
sql/sql_lex.h:
way to force derived table save JOIN after execution
sql/sql_select.cc:
make JOIN::prepare, JOIN::optimize only once for EXPLAIN of derived table
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 7e1923b1825..4d03feae07c 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -247,7 +247,9 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset; // uncachable cause #define UNCACHEABLE_DEPENDENT 1 #define UNCACHEABLE_RAND 2 -#define UNCACHEABLE_SIDEEFFECT 4 +#define UNCACHEABLE_SIDEEFFECT 4 +// forcing to save JOIN for explain +#define UNCACHEABLE_EXPLAIN 8 #ifdef EXTRA_DEBUG /* |