1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-25704 more tests

This commit is contained in:
Daniel Black
2022-07-27 17:46:49 +02:00
committed by Sergei Golubchik
parent 3607da3c4e
commit 0caa6bf14e
2 changed files with 80 additions and 0 deletions

View File

@@ -2229,6 +2229,29 @@ SELECT random_bytes(1025);
SELECT random_bytes(11111);
SELECT random_bytes(2056);
SELECT length(random_bytes(10.0));
SELECT length(random_bytes(10.1));
SELECT length(random_bytes(+1e1));
SELECT length(random_bytes(time("00:01")));
SELECT length(random_bytes("10.0"));
SELECT length(random_bytes("10.1"));
SELECT length(random_bytes("+1e1"));
SELECT length(random_bytes("10.0bunnies"));
SELECT length(random_bytes("10.1chickens"));
SELECT length(random_bytes("+1e1rabbits"));
--delimiter |
create procedure p1()
begin
declare r ROW (c1 INT);
set r.c1= 10;
select random_bytes(r);
end|
--delimiter ;
--error 1241
call p1();
drop procedure p1;
--echo #
--echo # Test For invalid argument return NULL
--echo #