MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown 5a17730824 Bug#30665: Inconsistent optimization of IGNORE INDEX FOR {ORDER BY|GROUP BY}
The optimizer takes different execution paths during EXPLAIN than SELECT,
this fix relates only to EXPLAIN, hence no behavior changes.
The test of sort keys for ORDER BY was prohibited from considering keys
that were mentioned in IGNORE KEYS FOR ORDER BY. This led to two 
inconsistencies: One was that IGNORE INDEX FOR GROUP BY and 
IGNORE INDEX FOR ORDER BY gave apparently different EXPLAINs; the latter 
erroneously claimed to do filesort. The second inconsistency 
is that the test of sort keys is called twice, finding a sort key the first
time but not the second time, leading to the mentioned filesort.

Fixed by making the test of sort keys consider all enabled 
keys on the table. This test rejects keys that are not covering, and for 
covering keys the hint should be ignored anyway. 


mysql-test/r/group_by.result:
  Bug#30665: Changed test result. The plan gets more efficient here. 
  The output is included in order to show that it is still correct.
mysql-test/r/order_by.result:
  Bug#30665: Test result
mysql-test/t/group_by.test:
  Bug#30665: Changed test case to show correctness of changed plan
mysql-test/t/order_by.test:
  Bug#30665: Test case
sql/sql_select.cc:
  Bug#30665: 
  - the fix: Give test_if_skip_sort_order all keys not the subset of non-disabled keys.
  - Added comment to test_if_skip_sort_order
2007-09-28 09:36:05 +02:00
BitKeeper Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build 2007-06-18 20:18:32 +02:00
BUILD Merge weblab.(none):/home/marcsql/TREE/mysql-5.1-base 2007-08-30 13:23:59 -06:00
client Merge gleb.loc:/home/uchum/work/bk/5.1 2007-09-13 00:44:50 +05:00
cmd-line-utils Merge mysql.com:/home/kent/bk/config_h/mysql-5.0-build 2007-07-30 21:45:06 +02:00
config/ac-macros Merge trift2.:/MySQL/M51/push-5.1 2007-09-13 23:54:22 +02:00
dbug Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.1-build 2007-08-04 00:44:51 +02:00
debian Made changes to debian control files to support building 5.1 packages. 2007-04-20 16:15:30 -07:00
Docs Merge mysql.com:/home/kent/bk/tmp/mysql-5.0-build 2007-03-22 19:44:14 +01:00
extra Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maint 2007-08-28 11:36:10 +02:00
include Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt 2007-09-19 18:02:59 +03:00
libmysql Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main 2007-08-24 15:25:02 +03:00
libmysql_r
libmysqld Bug #30389: connection_id() always return 0 in embedded server 2007-08-27 14:31:27 -06:00
man
mysql-test Bug#30665: Inconsistent optimization of IGNORE INDEX FOR {ORDER BY|GROUP BY} 2007-09-28 09:36:05 +02:00
mysys Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt 2007-08-28 12:22:55 +03:00
netware Merge trift2.:/MySQL/M50/netware2-5.0 2007-08-24 23:40:36 +02:00
plugin Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-06-01 12:59:06 +02:00
pstack
regex Merge bk-internal.mysql.com:/home/bk/mysql-5.1-marvel 2007-08-16 18:21:47 +02:00
scripts Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/50 2007-08-28 13:25:06 -06:00
server-tools Merge bk-internal.mysql.com:/home/bk/mysql-5.1-marvel 2007-08-16 18:21:47 +02:00
sql Bug#30665: Inconsistent optimization of IGNORE INDEX FOR {ORDER BY|GROUP BY} 2007-09-28 09:36:05 +02:00
sql-bench Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql-common Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
storage fixed type conversion warnings revealed by bug 30639 2007-09-21 10:15:16 +02:00
strings Merge trift2.:/MySQL/M51/target-5.1.22 2007-08-22 16:08:55 +02:00
support-files Merge trift2.:/MySQL/M50/bug21023-25486-5.0 2007-07-17 21:11:22 +02:00
tests Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main 2007-08-24 15:25:02 +03:00
unittest Fixes Bug#30127: --debug-info no longer prints memory usage in mysql 2007-08-01 22:59:05 +03:00
vio Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maint 2007-08-28 11:36:10 +02:00
win CMakeLists.txt (many), win/README, mysql_manifest.cmake, configure.js: 2007-08-06 23:16:01 +02:00
zlib CMakeLists.txt, README, configure.js 2007-08-03 21:51:37 +02:00
.bzrignore Merge gleb.loc:/home/uchum/work/bk/5.0-opt 2007-09-06 19:15:31 +05:00
.cvsignore
CMakeLists.txt CMakeLists.txt (many), win/README, mysql_manifest.cmake, configure.js: 2007-08-06 23:16:01 +02:00
configure.in Merge ramayana.hindu.god:/home/tsmith/m/bk/51-target22-X 2007-08-27 18:41:29 -06:00
COPYING
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
Makefile.am Merge debian.(none):/M50/rowlock-5.0 2007-07-26 18:40:46 +02:00
README

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.