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 95a8c6c327 Bug #28591: MySQL need not sort the records in case of
ORDER BY primary_key on InnoDB table

Queries that use an InnoDB secondary index to retrieve
data don't need to sort in case of ORDER BY primary key
if the secondary index is compared to constant(s).
They can also skip sorting if ORDER BY contains both the
the secondary key parts and the primary key parts (in
that order).
This is because InnoDB returns the rows in order of the
primary key for rows with the same values of the secondary
key columns.
Fixed by preventing temp table sort for the qualifying 
queries.


mysql-test/r/innodb_mysql.result:
  Bug #28591: test case
mysql-test/t/innodb_mysql.test:
  Bug #28591: test case
sql/sql_select.cc:
  Bug #28591: Use the primary key as suffix when testing
  if the key can be used for ORDER BY on supporting engines.
sql/table.cc:
  Bug #28591: can use the primary key
  as a suffix for the secondary keys
2007-07-20 21:05:29 +03:00
bdb
BitKeeper
BUILD Bug #29543 GCov information not written in case of crash. 2007-07-07 07:46:17 +02:00
client Merge gleb.loc:/home/uchum/work/bk/5.0 2007-07-13 20:49:21 +05:00
cmd-line-utils
config/ac-macros
dbug
debian
Docs
extra
heap
include Merge gleb.loc:/home/uchum/work/bk/5.0 2007-07-13 20:49:21 +05:00
innobase
libmysql Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-07-06 09:51:02 +03:00
libmysql_r
libmysqld
man
myisam fixed uninitialized variable introduced by the fix for bug 29325 2007-07-11 12:37:47 +03:00
myisammrg
mysql-test Bug #28591: MySQL need not sort the records in case of 2007-07-20 21:05:29 +03:00
mysys Bug #29469: Client dies if a query is issued after hitting Ctrl + C 2007-07-10 10:43:12 +03:00
ndb Merge perch.ndb.mysql.com:/home/jonas/src/50-work 2007-07-04 22:42:31 +02:00
netware
os2
pstack
regex
scripts Bug#29382 Collation 'utf8_test_ci' not found in tests 2007-07-04 14:53:08 +05:00
server-tools
sql Bug #28591: MySQL need not sort the records in case of 2007-07-20 21:05:29 +03:00
sql-bench
sql-common
SSL
strings Merge olga.mysql.com:/home/igor/mysql-5.0-rpl 2007-07-13 19:05:30 -07:00
support-files
tests
tools
VC++Files
vio
win
zlib
.bzrignore
.cvsignore
CMakeLists.txt
configure.in
COPYING
EXCEPTIONS-CLIENT
Makefile.am
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.