1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Merge branch '11.2' into 11.4

This commit is contained in:
Oleksandr Byelkin
2024-05-21 19:38:51 +02:00
1438 changed files with 43076 additions and 14912 deletions

View File

@ -2458,6 +2458,28 @@ select "a" in ("abc", (convert(random_bytes(8) ,binary(2))));
--echo # End of 10.10 tests
--echo #
--echo #
--echo # Start of 10.11 tests
--echo #
--echo #
--echo # MDEV-33392 Server crashes when using RANDOM_BYTES function and GROUP BY clause on a column with a negative value
--echo #
SET sql_mode='';
CREATE TABLE t1 (a VARCHAR(255)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (9494),(9495),(9496),(9497),(9498),(9499),(9500),(9501),(9502),(9503);
SELECT RANDOM_BYTES (-1) f1,a f2 FROM t1 GROUP BY f1,f2;
CREATE TABLE t2 AS SELECT RANDOM_BYTES (-1) f1,a f2 FROM t1 GROUP BY f1,f2;
SHOW CREATE TABLE t2;
DROP TABLE t2;
DROP TABLE t1;
SET sql_mode=DEFAULT;
--echo #
--echo # End of 10.11 tests
--echo #
--echo #
--echo # MDEV-9069 extend AES_ENCRYPT() and AES_DECRYPT() to support IV and the algorithm
--echo #
@ -2500,6 +2522,15 @@ set @@block_encryption_mode=default;
--echo #
select aes_encrypt(a,a) is null from (values('a'),(NULL),('b')) x;
--echo #
--echo # MDEV-33659: Server crashed at Create_func_aes_decrypt::create_native
--echo #
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
select aes_encrypt();
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
select aes_decrypt();
--echo #
--echo # End of 11.2 tests
--echo #