MariaDB and MySQL front-end, D70 to D88
Entries D70 to D88 of the unreleased changelog (views to triggers) and the removal of the in-server election.
Newest entries of the unreleased version (Stage 0). The first entry is a removal, the others add features of the MySQL and MariaDB front-ends (raftdb-mysql).
Removed#
- The election inside the server (D51 C4):
cluster.rs, thecluster-*settings, theclusterprofile,Config::cluster, theclusterobject ofGET /v1/server, theraftdb-raftdependency ofraftdb-server, its tests, and the scripts that started such clusters. Failover is now done by the watcher quorum (control = trueon the nodes,cluster_peerson the watchers; tested by the watcher's control-plane tests and a real-process failover test).
Added#
- MariaDB / MySQL (D88): triggers (
BEFORE/AFTERINSERT/UPDATE/DELETE,NEWandOLD,SHOW TRIGGERS,information_schema.TRIGGERS). - MariaDB / MySQL (D87): stored procedures and functions (
CREATE,DROP,CALL,SHOW CREATE,SHOW ... STATUS,information_schema.ROUTINES), with variables, handlers, cursors, loops,SIGNAL; several result sets in one answer. - MariaDB / MySQL (D86): any table or database name MySQL allows; MySQL's words for bad JSON; the real
SHOW CHARACTER SET/SHOW COLLATIONlists; fix for a stale connection after a failed unique index. - MariaDB / MySQL (D85): row comparisons,
ANY/SOME/ALL,SUBSTRING(s FROM .. FOR ..),INTERVAL(),SHOW DATABASES LIKE,X'..', names that start with digits,FETCH FIRSTandGROUP_CONCAT ... LIMIT(MariaDB),VALUES (..)(MariaDB). - MariaDB / MySQL (D84):
GROUP BY ... WITH ROLLUP; MySQL's->,->>andMEMBER OF. - MariaDB / MySQL (D83):
ANALYZE/OPTIMIZE/CHECK/REPAIR TABLE;REGEXP_REPLACE,REGEXP_SUBSTR,REGEXP_INSTR; regular-expression groups, back-references and look-around. - MariaDB / MySQL (D82):
UUID,INET4,INET6,SERIALand the other names of the types; about 60 more functions; the JSON functions;STDDEV,VARIANCE,BIT_*,JSON_ARRAYAGG; checked against MySQL and MariaDB. - MariaDB / MySQL (D81): every system variable of MySQL and MariaDB with its default,
SET GLOBAL; SQL-levelPREPARE/EXECUTE/DEALLOCATEandEXECUTE IMMEDIATE;CREATE OR REPLACE,IF [NOT] EXISTSinALTER TABLEandCREATE/DROP INDEX;RETURNING; sequences; expression defaults (DEFAULT (expr)); checked against MySQL and MariaDB. - MariaDB (D80): MariaDB Connector/J works (lists in
SET,_binary/_charsetliterals, binary column metadata); MariaDB's error wording andSHOWshapes; exact whole-number and decimal arithmetic up to 128 bits and fullBIGINT UNSIGNED;SHOW INDEXcardinality; the MariaDB documentation coverage harness and its first result. - MySQL front-end (D79): the
dialectsetting (mysql,mariadb): the program answers as MariaDB 11 (version, handshake withoutCLIENT_MYSQLand with MariaDB's capability bytes, default plugin,sql_mode, collation,int(11)display widths, its own database namespace__rdb_mariadb); the MariaDB dialect is compared with a real MariaDB. - MySQL front-end (D78): the type of a computed column of
CREATE TABLE ... AS SELECTand of the hidden column of a functional index is worked out from the expression as MySQL does (exprtype.rs); checked against MySQL and MariaDB. - MySQL front-end (D77): a comparison with the expression of a functional index uses the index; MySQL's rules and error messages for what generated columns, functional indexes and checks may contain (no
NOW(),RAND(), subqueries, variables, JSON or TEXT results), and for dropping or renaming a column they depend on; checked against MySQL and MariaDB. - MySQL front-end (D76): functional indexes (
KEY ((expression))inCREATE TABLE,CREATE INDEX,ALTER TABLE ADD INDEX,DROP INDEX) as hidden generated columns; unique indexes are listed first; checked against MySQL and MariaDB. - MySQL front-end (D75): invisible columns (
INVISIBLE,ALTER COLUMN ... SET [IN]VISIBLE) and invisible indexes (KEY ... INVISIBLE,ALTER INDEX i [IN]VISIBLE); checked against MySQL and MariaDB. - MySQL front-end (D74): generated columns (
GENERATED ALWAYS AS (expr) VIRTUAL | STORED, kept in the row, refreshed on every write,ALTER TABLE ADD COLUMN,SHOW CREATE TABLE,DESCRIBE); checked against MySQL and MariaDB. - MySQL front-end (D73):
CHECKconstraints (column and table level,ALTER TABLE ADD CHECK/DROP CHECK,NOT ENFORCED,SHOW CREATE TABLE,LIKE); checked against MySQL and MariaDB. - MySQL front-end (D72): temporary tables (
CREATE TEMPORARY TABLEalso withLIKE/AS SELECT,DROP TEMPORARY TABLE, session-private, hide a base table, dropped at the end of the session); checked against MySQL and MariaDB. - MySQL front-end (D71):
CREATE TABLE ... LIKE,CREATE TABLE ... [IGNORE | REPLACE] [AS] SELECT(also withWITH,UNION, written columns and keys); checked against MySQL and MariaDB. - MySQL front-end (D70): views (
CREATE [OR REPLACE] VIEW,ALTER VIEW,DROP VIEW,SHOW CREATE VIEW,SHOW FULL TABLES,DESCRIBEof views, updatable single-table views); checked against MySQL and MariaDB.