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
Nayuta Yanagisawa 4194f7b605 MDEV-25116 Spider: IF(COUNT( trigger SQL Error (1054)_ Unknown column '' in field list
The original query "SELECT IF(COUNT(a.`id`)>=0,'Y','N') FROM t" is
transformed to "SELECT COUNT(a.`id`), IF(ref >= 0, 'Y', 'N') FROM t",
where ref is Item_ref to "COUNT(a.`id`)", by split_sum_func().

Spider walks the item list twice, invoking spider_db_print_item_type().
The first invocation is in spider_create_group_by_handler() with
str == NULL. The second one is in spider_group_by_handler::init_scan()
with str != NULL.

spider_db_print_item_type() prints nothing at the first invocation,
and it prints item at the second invocation. However, at the second
invocation, the above mentioned ref to "COUNT(a.`id`)" points to
a field in a temporary table where the result will be stored. Thus,
to look behind the item_ref, Spider need to generate the query earlier.

A possible fix would be to generate a query to send in
spider_create_group_by_handler(). However, the fix requires a
considerable amount of changes of the Spider's GROUP BY handler.
I'd like to avoid that.

So, I fix the problem by not to use the GROUP BY handler when a
query contains Item_ref whose table_name, name, and alias_name_used
are not set.
2022-04-08 15:27:33 +09:00
BUILD Merge 10.2 into 10.3 2022-03-29 09:53:15 +03:00
client Merge 10.2 into 10.3 2022-03-29 09:53:15 +03:00
cmake MDEV-28032 "git submodule update --depth 1" may fail with old Git 2022-03-19 09:38:57 +01:00
dbug Merge 10.2 into 10.3 2021-05-24 09:38:49 +03:00
debian Merge 10.2 (part) into 10.3 2022-03-15 16:44:52 +11:00
Docs
extra MDEV-25975 innodb_disallow_writes causes shutdown to hang 2022-04-06 08:06:49 +03:00
include Merge 10.2 into 10.3 2022-04-06 08:06:35 +03:00
libmariadb@f6c3d9fd2a new CC 2022-01-26 10:42:01 +01:00
libmysqld Merge branch '10.2' into 10.3 2022-01-29 15:41:05 +01:00
libservices
man Merge 10.2 into 10.3 2022-02-17 10:53:58 +02:00
mysql-test MDEV-28253 Mysqldump - INVISIBLE column error 2022-04-07 23:02:23 +02:00
mysys MDEV-28178 Windows : sporadic ER_ERROR_ON_RENAME .. (errno: 13 "Permission denied") 2022-03-28 12:46:35 +02:00
mysys_ssl Merge branch '10.2' into 10.3 2022-01-29 15:41:05 +01:00
pcre Merge branch '10.2' into 10.3 2021-07-29 13:51:02 +02:00
plugin Adding a "const" qualifier to arguments of create_func(), create_native() etc 2022-04-04 09:50:32 +04:00
randgen/conf
scripts MDEV-28205: SST via mariabackup stops on failure while archiving logs 2022-04-07 13:26:36 +02:00
sql MDEV-28253 Mysqldump - INVISIBLE column error 2022-04-07 23:02:23 +02:00
sql-bench Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
sql-common Merge branch '10.2' into 10.3 2020-09-28 17:27:42 +05:30
storage MDEV-25116 Spider: IF(COUNT( trigger SQL Error (1054)_ Unknown column '' in field list 2022-04-08 15:27:33 +09:00
strings Merge 10.2 into 10.3 2022-03-29 09:53:15 +03:00
support-files Merge 10.2 into 10.3 2022-02-17 10:53:58 +02:00
tests MDEV-28253 Mysqldump - INVISIBLE column error 2022-04-07 23:02:23 +02:00
unittest Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
vio Merge branch 10.2 into 10.3 2021-12-23 14:14:04 +01:00
win Merge 10.2 into 10.3 2021-11-17 13:55:54 +02:00
wsrep cleanup: use predefined CMAKE_DL_LIBS 2020-10-23 13:37:26 +02:00
zlib Merge branch '10.2' into 10.3 2020-12-23 19:28:02 +01:00
.clang-format
.gitattributes MDEV-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01:00
.gitignore Merge 10.2 into 10.3 2021-10-13 11:38:21 +03:00
.gitmodules
.travis.compiler.sh
.travis.yml travis: update osx to xcode12u in attempt to solve openssl build failure 2020-09-02 11:23:18 +10:00
appveyor.yml Windows, appveyor - use VS2022 2022-01-09 13:56:50 +01:00
BUILD-CMAKE
CMakeLists.txt Merge branch '10.2' into 10.3 2022-01-29 15:41:05 +01:00
config.h.cmake Merge 10.2 into 10.3 2021-03-27 16:11:26 +02:00
configure.cmake improve checks for libatomic linking 2021-12-30 16:20:29 +11:00
COPYING
CREDITS Update contributors 2022-03-23 10:47:27 +11:00
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md Remove Travis CI status 2021-06-21 08:18:34 +03:00
THIRDPARTY
VERSION bump the VERSION 2022-02-12 15:43:53 -05: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. 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