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
Aleksey Midenkov 0932c5804d MDEV-20515 multi-update tries to position updated table by null reference
Cause

Join tmp table inserts null row because of OUTER JOIN, that's
expected. Since `multi_update::prepare2()` converted
`Item_temptable_rowid` into `Item_field` (28dbdf3)
`multi_update::send_data()` accesses join tmp record directly and
treats it as a normal row ignoring null status of ref field. NULL ref
field is then treated as normal in `multi_update::do_updates()` which
tries to position updated table by reference 0.

Note that reference 0 may be valid reference and the first row of
table can be wrongly updated (see multi_update.test).

Fix

Do not add row into multi-update tmp table in case of null ref
field. Join tmp table does not have null_row status at this time (as
well as `STATUS_NULL_ROW`) and cannot be skipped by these properties
(see first comment in multi_update::send_data()). But it has all null
fields (including the ref field).
2020-04-02 20:48:38 +03:00
BUILD Merge branch '10.2' into 10.3 2019-09-03 13:17:32 +03:00
client Merge 10.2 into 10.3 2020-03-13 12:31:55 +02:00
cmake Merge branch '10.2' into 10.3 2020-03-08 11:02:55 +02:00
dbug Merge 10.2 into 10.3 2019-12-12 14:41:51 +02:00
debian Change exec bit to allow dh-exec to work 2020-03-18 22:14:38 +02:00
Docs Merge branch '10.2' into 10.3 2019-06-14 07:36:47 +02:00
extra Merge branch '10.2' into 10.3 2020-03-11 14:05:41 +01:00
include Merge 10.2 into 10.3 2020-03-30 11:12:56 +03:00
libmariadb@1768cb6c32 new (fixed) version of CC. 2020-03-18 09:33:26 +01:00
libmysqld Merge 10.2 (up to commit ef00ac4c86) into 10.3 2019-09-04 10:19:58 +04:00
libservices
man MDEV-14330: After-merge fix 2020-01-31 13:16:11 +02:00
mysql-test MDEV-20515 multi-update tries to position updated table by null reference 2020-04-02 20:48:38 +03:00
mysys Merge branch '10.2' into 10.3 2020-03-08 11:02:55 +02:00
mysys_ssl
pcre Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
plugin Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
randgen/conf
scripts MDEV-21317 mysqlhotcopy and transaction_registry table 2020-02-02 15:13:29 +03:00
sql MDEV-20515 multi-update tries to position updated table by null reference 2020-04-02 20:48:38 +03:00
sql-bench Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
sql-common Merge branch '10.2' into 10.3 2020-01-21 09:11:14 +01:00
storage MDEV-20590 Introduce a file format constraint to ALTER TABLE 2020-03-30 12:41:59 +03:00
strings Merge 10.2 into 10.3 2019-12-27 15:14:48 +02:00
support-files Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
tests
unittest Merge 10.2 to 10.3 2019-08-13 19:28:51 +03:00
vio Fix warning when compiling with OpenSSL. 2019-09-09 13:52:30 +02:00
win Fix Windows packaging. 2019-07-27 13:53:56 +02:00
wsrep Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
zlib Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
.clang-format .clang-format - do not sort include files. 2019-12-03 22:22:23 +01:00
.gitattributes
.gitignore Merge 10.2 into 10.3 2020-01-31 11:37:12 +02:00
.gitmodules
.travis.compiler.sh
.travis.yml
appveyor.yml
BUILD-CMAKE
CMakeLists.txt Merge 10.2 into 10.3 2020-03-30 11:12:56 +03:00
config.h.cmake Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
configure.cmake Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
COPYING
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md
THIRDPARTY
VERSION bump the VERSION 2020-01-27 15:10:11 -05:00

Code status:

  • Travis CI status travis-ci.org (10.3 branch)
  • 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. 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 Foundation and the MariaDB Corporation, 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-features/

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

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.

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