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
Dmitry Shulga be02356206 MDEV-14959: Fixed memory leak happened on re-parsing a view that substitutes a table
In case a table accessed by a PS/SP is dropped after the first execution of
PS/SP and a view created with the same name as a table just dropped then
the second execution of PS/SP leads to allocation of a memory on SP/PS
memory root already marked as read only on first execution.

For example, the following test case:
CREATE TABLE t1 (a INT);
PREPARE stmt FROM "INSERT INTO t1 VALUES (1)";
EXECUTE stmt;
DROP TABLE t1;
CREATE VIEW t1 S SELECT 1;
--error ER_NON_INSERTABLE_TABLE
EXECUTE stmt; # (*)
DROP VIEW t1;

will hit assert on running the statement 'EXECUTE stmt' marked with (*)
when allocation of a memory be performed on parsing the view.

Memory allocation is requested inside the function mysql_make_view
when a view definition being parsed. In order to avoid an assertion
failure, call of the function mysql_make_view() must be moved after
invocation of the function check_and_update_table_version().
It will result in re-preparing the whole PS statement or current
SP instruction that will free currently allocated items and reset
read_only flag for the memory root.
2023-09-02 13:00:00 +07:00
BUILD Merge 10.3 into 10.4 2022-12-13 11:37:33 +02:00
client MDEV-31092 mysqldump --force doesn't ignore error as it should 2023-07-31 22:46:47 +02:00
cmake MDEV-18374: Add SELinux policy to cracklib_password_check packages 2023-07-26 11:13:09 +01:00
dbug Minimize unsafe C functions usage - replace strcat() and strcpy() (and strncat() and strncpy()) with custom safe_strcat() and safe_strcpy() functions 2023-01-20 15:18:52 +02:00
debian MDEV-31358: Update description for MariaDB debian/rpm packages 2023-07-03 17:45:58 +10:00
Docs Merge 10.3 into 10.4 2022-09-23 13:47:15 +03:00
extra new WolfSSL v5.6.3-stable 2023-07-25 21:08:02 +02:00
include MDEV-14959: Control over memory allocated for SP/PS 2023-09-02 13:00:00 +07:00
libmariadb@3393fe35d3 New CC 3.1 2023-07-24 11:18:11 +02:00
libmysqld MDEV-31461 mariadb SIGSEGV when built with -DCLIENT_PLUGIN_DIALOG=STATIC 2023-06-19 12:12:21 +02:00
libservices
man MDEV-24453 Added support for a 5th --verbose parameter in mariadb-upgrade to show mysql results for mysql_fix_privilege_tables 2023-03-27 16:29:14 +02:00
mysql-test MDEV-32060 Server aborts when table doesn't have referenced index 2023-09-01 17:54:07 +05:30
mysys MDEV-14959: Control over memory allocated for SP/PS 2023-09-02 13:00:00 +07:00
mysys_ssl Fix double definition of CRYPTO_cleanup_all_ex_data 2023-07-31 17:44:07 +02:00
pcre MDEV-31727: pcre stack size not functioning on clang-16 2023-07-21 20:21:37 +10:00
plugin MDEV-18374: Add SELinux policy to cracklib_password_check packages 2023-07-26 11:13:09 +01:00
randgen/conf
scripts Revert "update galera_new_cluster to use environment file" 2023-08-08 15:46:39 +01:00
sql MDEV-14959: Fixed memory leak happened on re-parsing a view that substitutes a table 2023-09-02 13:00:00 +07:00
sql-bench
sql-common Remove CLIENT_SSL_VERIFY_SERVER_CERT 2023-07-23 19:23:51 +02:00
storage MDEV-32060 Server aborts when table doesn't have referenced index 2023-09-01 17:54:07 +05:30
strings MDEV-28384 UBSAN: null pointer passed as argument 1, which is declared to never be null in my_strnncoll_binary on SELECT ... COUNT or GROUP_CONCAT 2023-07-20 11:56:19 +04:00
support-files Revert "use environment file in systemd units for _WSREP_START_POSITION" 2023-08-08 15:46:39 +01:00
tests MDEV-30159 fixup: Plug a memory leak in the test 2023-07-31 09:28:28 +03:00
unittest MDEV-30034 UNIQUE USING HASH accepts duplicate entries for tricky collations 2023-04-04 12:30:50 +04:00
vio Merge branch '10.3' into 10.4 2022-10-26 14:55:47 +02:00
win MDEV-30624 HeidiSQL 12.3 2023-02-09 11:28:55 +01:00
wsrep-lib@173693f2ee galera: wsrep-lib submodule update 2023-08-11 07:13:35 +02:00
zlib Merge branch 'merge-zlib' into 10.3 2023-04-20 17:06:19 +02:00
.clang-format
.gitattributes MDEV-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01:00
.gitignore Adding .ccls-cache/ to .gitignore 2023-06-02 11:46:14 +10:00
.gitlab-ci.yml All-green GitLab CI in 10.4 branch 2023-05-19 13:21:34 +01:00
.gitmodules Revert "ignore changes in submodules when committing everything" 2023-02-21 23:22:56 +01:00
appveyor.yml Fix typo in appveyor.yml 2022-07-04 19:24:58 +02:00
BUILD-CMAKE
CMakeLists.txt MDEV-14959: Control over memory allocated for SP/PS 2023-09-02 13:00:00 +07:00
config.h.cmake Merge 10.3 into 10.4 2022-10-11 15:18:49 +03:00
configure.cmake Remove HAVE_SNPRINTF 2022-10-05 10:09:49 +03:00
CONTRIBUTING.md
COPYING
CREDITS CREDITS: re-instate Tencent Cloud 2023-01-25 16:44:26 +11:00
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md Merge 10.3 into 10.4 2021-06-21 12:38:25 +03:00
THIRDPARTY
VERSION bump the VERSION 2023-08-14 13:43:36 -04:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: drop-in replacement for MySQL

MariaDB is 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.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/library/new-and-old-releases/

https://mariadb.org/

As MariaDB is a full replacement of MySQL, the MySQL manual at http://dev.mysql.com/doc is generally applicable.

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss and the #maria IRC channel on Freenode.

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip and IRC. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

Licensing


NOTE:

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/

Bugs in the MySQL code can also be submitted at: https://bugs.mysql.com

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