diff options
author | Michael Widenius <monty@askmonty.org> | 2010-09-23 19:30:44 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-09-23 19:30:44 +0300 |
commit | 5ce4825b63997f6db76a12b0f764d175734699fb (patch) | |
tree | 0d2b9b95d1eb2c047e4337fda92a3aa58471e62a /sql/sql_select.cc | |
parent | ec06ba24553d2d83b3a6a6bc4d8150910b01ee7c (diff) | |
download | mariadb-git-5ce4825b63997f6db76a12b0f764d175734699fb.tar.gz |
Fix usage of mysqld option --new, --old, --safe and --skip_new to not disable things that are proven stable or enable things that are not usefull.
sql/field.cc:
Remove feature of 'new_mode' that was never implemtented in a newer MySQL version.
sql/item_cmpfunc.cc:
Boyer more is stable; Don't have to be protected by --skip-new anymore
sql/mysqld.cc:
Don't disable some proven stable functions with --skip-new
sql/records.cc:
Don't disable record caching with --safe-mode anymore
sql/sql_delete.cc:
Do fast truncate even if --skip-new or --safe is used
sql/sql_parse.cc:
Use always mysql_optimizer() for optimizer (instead of mysql_recreate_table() in case of --safe or --skip-new)
sql/sql_select.cc:
Don't disable 'only_eq_ref_tables' if --safe is used.
sql/sql_yacc.yy:
Removed not meaningfull test of --old
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 2e966dbdde3..f649297aceb 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -7187,8 +7187,6 @@ eq_ref_table(JOIN *join, ORDER *start_order, JOIN_TAB *tab) static bool only_eq_ref_tables(JOIN *join,ORDER *order,table_map tables) { - if (specialflag & SPECIAL_SAFE_MODE) - return 0; // skip this optimize /* purecov: inspected */ tables&= ~PSEUDO_TABLE_BITS; for (JOIN_TAB **tab=join->map2table ; tables ; tab++, tables>>=1) { |