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.
Go to file
bsrikanth-mariadb f84f2ce534 MDEV-31887: wrong result with split optimization
Wrong result is produced when split-materialized optimization is used for
grouping with order by and limit.

The fix is to not let Split-Materialized optimization to happen
when the sub-query has an ORDER BY with LIMIT, by returning FALSE early
in the method opt_split.cc#check_for_splittable_materialized()

However, with just the above change, there is a side-effect of
NOT "using index for group by" in the scenario when
all the following conditions are met: -
  1. The query has derived table with GROUP BY and ORDER BY LIMIT
  2. joined in a way that would allow Split-Materialized
     if ORDER BY LIMIT wasn't present
  3. An index suitable for using "index for group-by"
  4. No where clause so that, "using for group by" is applicable,
     but the index is not included in "possible_keys".
The reason being, join_tab's "keys" field wasn't being set in
sql_select.cc#make_join_select(). So, made this change as well
as part of this PR.
2025-10-24 20:08:59 +05:30
.github
BUILD Fixed compiler issues when compiling with UBSAN 2025-09-04 18:08:38 +03:00
client MDEV-35224 ASAN error in mariadb client with \c 2025-09-24 10:27:53 +10:00
cmake MDEV-37680/MDEV-24941: RHEL9+,Centos-stream and Fedora to pull mysql-selinux-1.0.14+ dependency 2025-10-01 08:51:04 +10:00
dbug
debian MDEV-34744 server cannot load client plugins on Debian 2025-10-21 13:16:24 +02:00
Docs
extra MDEV-37908: Replace perror link with GitBook 2025-10-21 15:47:00 -06:00
include Improvements for myisamchk 2025-09-04 18:08:39 +03:00
libmariadb@9e2b0370de new CC 3.3 2025-10-20 11:48:59 +02:00
libmysqld
libservices
man
mysql-test MDEV-31887: wrong result with split optimization 2025-10-24 20:08:59 +05:30
mysys Merge 10.6 into 10.11 2025-10-09 13:29:46 +03:00
mysys_ssl
plugin bump inet4 maturity to stable 2025-10-14 15:04:23 +02:00
randgen/conf
scripts MDEV-37899 galera sst generates numerous selinux AVCs when starting 2025-10-21 20:25:06 +11:00
sql MDEV-31887: wrong result with split optimization 2025-10-24 20:08:59 +05:30
sql-bench
sql-common
storage Merge 10.6 into 10.11 2025-10-23 10:38:55 +03:00
strings MDEV-30692: conf_to_src incompatible with CHARSET_INFO changes (postfix) 2025-09-10 13:50:59 +10:00
support-files MDEV-36721: remove PrivateDevices=false from systemd services 2025-10-21 11:56:04 +11:00
tests
tpool MDEV-37728: Fix shutdown deadlock between thr_timer_end and set_period 2025-09-24 22:25:59 +02:00
unittest Improve crc32 test data 2025-10-02 15:44:34 +03:00
vio
win Merge branch '10.6' into 10.11 2025-07-28 18:06:31 +02:00
wsrep-lib@14ce8cab76 galera: wsrep-lib submodule update 2025-08-13 17:53:56 +02:00
zlib
.clang-format
.gitattributes
.gitignore
.gitlab-ci.yml
.gitmodules
appveyor.yml
BUILD-CMAKE
CMakeLists.txt MDEV-37791: gcov doesn't work on macOS 2025-10-13 09:55:29 -04:00
config.h.cmake
configure.cmake
CONTRIBUTING.md
COPYING
CREDITS
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md
THIRDPARTY
VERSION bump the VERSION 2025-08-06 17:22:00 -04:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: The innovative open source database

MariaDB was designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation and the MariaDB Corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/new-and-old-releases/

Getting the code, building it and testing it

Refer to the following guide: https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/ which outlines how to build the source code correctly and run the MariaDB testing framework, as well as which branch to target for your contributions.

Help

More help is available from the Maria Discuss mailing list https://lists.mariadb.org/postorius/lists/discuss.lists.mariadb.org/ and MariaDB's Zulip instance, https://mariadb.zulipchat.com/

Licensing


MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server