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
Olav Sandstaa fd5380b496 Fix for Bug#14636211 WRONG RESULT (EXTRA ROW) ON A FROM SUBQUERY
WITH A VARIABLE AND ORDER BY
        Bug#16035412 MYSQL SERVER 5.5.29 WRONG SORTING USING COMPLEX INDEX
      
This is a fix for a regression introduced by Bug#12667154:
Bug#12667154 attempted to fix a performance problem with subqueries
that did filesort. For doing filesort, the optimizer creates a quick
select object to use when building the sort index. This quick select
object was deleted after the first call to create_sort_index(). Thus,
for queries where the subquery was executed multiple times, the quick
object was only used for the first execution. For all later executions
of the subquery, filesort used a complete table scan for building the
sort index. The fix for Bug#12667154 tried to fix this by not deleting
the quick object after the first execution of create_sort_index() so
that it would be re-used for building the sort index by the following
executions of the subquery.
      
This regression introduced in Bug#12667154 is that due to not deleting
the quick select object after building the sort index, the quick
object could in some cases be used also during the second phase of the
execution of the subquery instead of using the created sort
index. This caused wrong results to be returned.
      
The fix for this issue is to delete the reference to the select object
after it has been used in create_sort_index(). In this way the select 
and quick objects will not be available when doing the second phase
of the execution of the select operation. To ensure that the select
object can be re-used for the following executions of the subquery
we make a copy of the select pointer. This is used for restoring the
select object after the select operation is completed.


mysql-test/suite/innodb/r/innodb_mysql.result:
  Changed explain output: The explain now contains "Using where" since we
  have restored the select pointer after doing the filesort operation.
sql/sql_select.cc:
  Change create_sort_index() so that it always sets the pointer to
  the select object to NULL. This is done in order to avoid that the
  select->quick object can be used when execution the main part of
  the select operation.
sql/sql_select.h:
  New member in JOIN_TAB: saved_select. Used by create_sort_index to
  make a backup copy of the select pointer.
2013-01-14 10:58:17 +01:00
.bzr-mysql Fix tree setup: Wrong mailing list for commit mails. 2012-03-20 22:32:10 +01:00
BUILD
client BUG#11757250: REPLACE(...) INSIDE A STORED PROCEDURE. 2013-01-12 11:17:03 +05:30
cmake Placement change: 2012-11-07 17:45:02 +01:00
cmd-line-utils
dbug Bug#14542543 FIX BUG #12694872 IN 5.5 2012-09-18 17:32:02 +02:00
Docs INSTALL-BINARY placeholder (upmerge from 5.1): change invalid URLs (request from Kristofer) 2012-07-31 20:45:36 +02:00
extra Bug#15965288: BUFFER OVERFLOW IN YASSL FUNCTION 2012-12-13 10:19:14 +05:30
include BUG#11753923-SQL THREAD CRASHES ON DISK FULL 2013-01-02 18:32:38 +05:30
libmysql Bug #14553380 MYSQL C API LIBRARY EXITS AT NET_CLEAR AT NET_SERV.CC:223 2013-01-10 16:37:20 +05:30
libmysqld mysql_client_test did not build within limbysqld/examples 2012-07-10 10:07:46 +02:00
libservices
man
mysql-test Fix for Bug#14636211 WRONG RESULT (EXTRA ROW) ON A FROM SUBQUERY 2013-01-14 10:58:17 +01:00
mysys Merge of patch for Bug#16066243 from mysql-5.1. 2013-01-07 16:19:06 +05:30
packaging Updated Windows MSI package copyright year to 2013 2013-01-02 06:18:27 +01:00
plugin Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
regex
scripts Merge of patch for Bug#16046140 from mysql-5.1. 2012-12-27 17:36:11 +05:30
sql Fix for Bug#14636211 WRONG RESULT (EXTRA ROW) ON A FROM SUBQUERY 2013-01-14 10:58:17 +01:00
sql-bench
sql-common fixed a missing break 2012-07-05 10:18:18 +03:00
storage Merge from mysql-5.1 to mysql-5.5 2013-01-14 10:57:04 +05:30
strings Bug#15960005 VALGRIND WARNINGS IN PROCESS_ARGS 2012-12-10 09:55:08 +01:00
support-files Spec file change to work around cast ulonglong -> int. 2012-09-11 12:47:32 +02:00
tests merge 5.1 => 5.5 2012-11-01 17:33:55 +01:00
unittest BUG #13619394: fixing incorrect revert 2012-03-16 10:09:10 +01:00
vio Bug #13115401: -SSL-KEY VALUE IS NOT VALIDATED AND IT ALLOWS INSECURE 2012-08-11 15:52:11 +05:30
win
zlib
.bzrignore Bug#12845091 .EMPTY FILE IN /DATA/TEST PREVENTS USERS FROM DROPPING TEST DB ON 5.5 AND 5.6 2012-05-30 12:47:29 +02:00
BUILD-CMAKE
CMakeLists.txt Placement change: 2012-11-07 17:45:02 +01:00
config.h.cmake
configure.cmake Fixed a cmake compile problem because of the 2.8.8 fix. 2012-04-23 17:18:55 +03:00
COPYING
INSTALL-SOURCE Merged some fixes from 7.2 release branches 2012-03-22 16:16:11 +01:00
INSTALL-WIN-SOURCE Merged some fixes from 7.2 release branches 2012-03-22 16:16:11 +01:00
README Updated README and client executables copyright year to 2013 2013-01-01 03:36:10 +01:00
VERSION Raise version number after cloning 5.5.30 2013-01-08 07:28:41 +01:00

MySQL Server 5.5

This is a release of MySQL, a dual-license SQL database server.
For the avoidance of doubt, this particular copy of the software 
is released under the version 2 of the GNU General Public License. 
MySQL is brought to you by Oracle.

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

License information can be found in the COPYING file.

MySQL FOSS License Exception
We want free and open source software applications under certain
licenses to be able to use specified GPL-licensed MySQL client
libraries despite the fact that not all such FOSS licenses are
compatible with version 2 of the GNU General Public License.  
Therefore there are special exceptions to the terms and conditions 
of the GPLv2 as applied to these client libraries, which are 
identified and described in more detail in the FOSS License 
Exception at 
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.

This distribution may include materials developed by third
parties. For license and attribution notices for these
materials, please refer to the documentation that accompanies
this distribution (see the "Licenses for Third-Party Components"
appendix) or view the online documentation at 
<http://dev.mysql.com/doc/>.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead, 
Oracle elects to use only the General Public License version 2 
(GPLv2) at this time for any software where a choice of GPL 
license versions is made available with the language indicating 
that GPLv2 or any later version may be used, or where a choice 
of which version of the GPL is applied is otherwise unspecified.

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 Reference Manual sections of special interest:
- If you are migrating from an older version of MySQL, please 
  read the "Upgrading from..." section.
- 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 MySQL Change History 
  appendix.

You can browse the MySQL Reference Manual online or download it 
in any of several formats at the URL given earlier in this file.
Source distributions include a local copy of the manual in the
Docs directory.