MDEV-8989: ORDER BY optimizer ignores equality propagation

Post-fix #2:
- Update test results
- Make the optimization conditional under @@optimizer_switch flag.
- The optimization is now disabled by default, so .result files
  are changed back to be what they were before the MDEV-8989 patch.
This commit is contained in:
Sergei Petrunia 2016-06-01 23:43:11 +03:00
commit 5a5a54f7b4
16 changed files with 50 additions and 34 deletions

View file

@ -2391,7 +2391,9 @@ export const char *optimizer_switch_names[]=
"table_elimination",
"extended_keys",
"exists_to_in",
"default", NullS
"orderby_uses_equalities",
"default",
NullS
};
static bool fix_optimizer_switch(sys_var *self, THD *thd,
enum_var_type type)