-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit marks MariaDB 10.8 as a supported DB flavor. No functional changes were required. Two new 10.8 features are already introspected properly with existing code: * Descending indexes (DESC index parts) -- same information_schema representation as equivalent feature in MySQL 8 * Functions with IN / OUT / INOUT param qualifiers -- same information_schema representation as stored procedures with these qualifiers Integration test coverage has been added for these two features. No special handling for MariaDB 10.8's new binlog_alter_two_phase feature has been added, but use of this variable won't inherently break anything in Skeema. (Future versions of Skeema may also add new functionality which integrates more closely with this variable, but nothing concrete added yet.)
- Loading branch information
Showing
5 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Coverage for two new features in MariaDB 10.8: DESC index parts, and functions | ||
# with IN / OUT / INOUT param qualifiers | ||
|
||
SET foreign_key_checks=0; | ||
SET sql_log_bin=0; | ||
|
||
use testing | ||
|
||
CREATE TABLE maria108idx ( | ||
a int NOT NULL, | ||
b int, | ||
c int, | ||
d int, | ||
PRIMARY KEY (a), | ||
INDEX idx1 (d, b DESC), | ||
INDEX idx2 (a DESC, b ASC, d DESC) | ||
); | ||
|
||
# This is essentially tengo_test.go's aProc() changed to a func instead | ||
delimiter // | ||
CREATE FUNCTION maria108func( | ||
IN name varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, | ||
INOUT iterations int(10) unsigned, OUT pct decimal(5, 2) | ||
) RETURNS int READS SQL DATA SQL SECURITY INVOKER | ||
BEGIN | ||
SELECT @iterations + 1, 98.76 INTO iterations, pct; | ||
RETURN 123; | ||
END // | ||
delimiter ; | ||
|