The release of MariaDB 13.1.2 has been introduced, which is marked as the first stable release of the 13.1 branch. The MariaDB 13.1 branch is classified as an intermediate (rolling) release, continuing the gradual development of functionality and supported until the stable release of the next branch. Simultaneously, the MariaDB 13.2.1 release is available, which has candidate release status.
The MariaDB project develops a fork from MySQL, preserving backward compatibility and distinguished by the integration of additional storage engines and enhanced capabilities. The development of MariaDB is overseen by the independent MariaDB Foundation in accordance with an open and transparent development process that is not dependent on individual vendors. MariaDB is supplied instead of MySQL in many Linux distributions (RHEL, SUSE, Fedora, openSUSE, Slackware, OpenMandriva, ROSA, Arch Linux, Debian) and is implemented in major projects such as Wikipedia, Google Cloud SQL, and Nimbuzz.
Changes in the MariaDB 13.1 branch include:
- A DENY command has been added to prevent a user from executing certain operations on specified databases and tables. In contrast to the GRANT command, which provides a specific privilege, the DENY command forbids the acquisition of that privilege. DENY takes precedence over GRANT, meaning DENY can override GRANT, but not vice versa. To revoke a prohibition made via DENY, a separate command 'REVOKE DENY' has been implemented. GRANT SELECT on *.* to alice; DENY SELECT on db.secret_table to alice;
- JSON operators column->path and column->>path have been added to extract data from JSON documents, equivalent to the functions JSON_EXTRACT(json_doc, path) and JSON_UNQUOTE(JSON_EXTRACT(json_doc, path)).
- A new 'INTERVAL' expression has been added to the PARTITION BY RANGE COLUMNS operation for automatically adding new sections to a partitioned table when new records are added that match the specified interval (without the need for manual section addition via the 'ALTER TABLE … ADD PARTITION' command). In the example below, for all values in the 'c' field with a date before 2026-11-20, section p0 will be used, and a new section will be automatically created for each day after 2026-11-20 (p1 for '2026-11-21', p2 for '2026-11-22', etc.): CREATE TABLE t1 (c DATETIME) ENGINE = InnoDB PARTITION BY RANGE COLUMNS (c) INTERVAL 1 DAY ( PARTITION p0 VALUES LESS THAN ('2026-11-20') );
- Error diagnostics have been extended when calling mysqlbinlog with the '--flashback' option.
- A new variable 'innodb_table_lock_on_full_scan' has been added, which allows enabling the use of table-level locks instead of row-level locks when performing operations that result in a full table scan, such as queries 'SELECT … FOR UPDATE', 'UPDATE', and 'DELETE' without 'WHERE' conditions and 'LIMIT' restrictions.
- The JSON_TABLE function, which converts JSON data into a relational table format, has added the FORMAT JSON PATH expression to format nested JSON arrays and objects for writing them into a single text field in the table. SELECT * FROM JSON_TABLE(@json, ‘$[*]’ COLUMNS( name VARCHAR(10) PATH ‘$.name’, sizes VARCHAR(100) FORMAT JSON PATH ‘$.sizes’ ) ) AS jt; // The JSON array "sizes": [32, 34, 36] will be recorded in the "sizes" field as the string "[32, 34, 36]".
- By default, a 4-byte representation of UTF-8, utf8mb4, is used.
- In the mariadb-dump utility, the inclusion of automatically generated column values in the dump has been disabled by default (such columns are now inserted with the value "DEFAULT" or omitted altogether when running with the flag "—complete-insert").
- A new variable, "log_slow_max_query_length", has been added to limit the maximum size of the request body recorded in the slow query log (if the request exceeds the set limit, it is fully skipped instead of truncated).
- An information table, INFORMATION_SCHEMA.VECTOR_INDEXES, has been added to show data on the size, number of nodes, and other parameters of vector indexes.
- The variable parsec_iterations has been added to configure the number of iterations for the PBKDF2 key-generation function in the PARSEC plugin.
- In the InnoDB engine, it is now possible to enable an in-memory adaptive hash index (ADAPTIVE_HASH_INDEX = { YES | NO | DEFAULT }) for individual tables and indexes. Statistics for adaptive hash indexes (AHI) are now displayed in the output of "ANALYZE FORMAT=JSON".
- Support for hash functions XXH3 and XXH32 has been implemented.
- New variables innodb_tablespace_size_warning_threshold and innodb_tablespace_size_warning_pct have been added to issue warnings about insufficient free space in the storage.
- In the expressions "PREPARE", "EXECUTE", "DEALLOCATE", and "OPEN … FOR", it is now permissible to use local variables declared within the stored procedure as names for parameterized expressions (prepared statements) and cursors.
- Users can now declare custom types using the TYPE expression at the package specification level and use them outside of this package. SET sql_mode=ORACLE; DELIMITER $$ CREATE OR REPLACE PACKAGE pkg1 AS TYPE varchar_array IS TABLE OF VARCHAR(2000) INDEX BY INTEGER; TYPE rec0_t IS RECORD (a INT, b VARCHAR(30)); TYPE array0_t IS TABLE OF rec0_t INDEX BY INTEGER; END; $$ DELIMITER ;
Source: opennet.ru
