1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-27691: make working view-protocol

Update tests for version 10.10
This commit is contained in:
Lena Startseva
2022-09-28 13:53:08 +07:00
parent f9bf41632e
commit 7be65b4b6b
6 changed files with 28 additions and 2 deletions

View File

@ -128,6 +128,9 @@ SET @charset=(SELECT @@character_set_client);
--echo # SET NAMES CHARACTER SET cs [COLLATE cl]
--echo #
#enable after fix MDEV-29554
--disable_view_protocol
CREATE VIEW vars AS
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE variable_name IN
('character_set_client','character_set_connection','character_set_results',
@ -175,6 +178,8 @@ SELECT * FROM vars;
DROP VIEW vars;
--enable_view_protocol
--echo #
--echo # MDEV-27009 Add UCA-14.0.0 collations
--echo # ALTER TABLE t1 CONVERT TO CHARACTER SET cs [COLLATE cl]

View File

@ -1,4 +1,6 @@
-- source include/have_des.inc
#double warning for view protocol
--source include/no_view_protocol.inc
# This test can't be in func_encrypt.test, because it requires
# --des-key-file to not be set.

View File

@ -1,4 +1,6 @@
-- source include/have_des.inc
#double warning for view protocol
--source include/no_view_protocol.inc
--disable_warnings
drop table if exists t1;

View File

@ -1,5 +1,7 @@
-- source include/have_des.inc
-- source include/have_ucs2.inc
#double warning for view protocol
--source include/no_view_protocol.inc
--echo #
--echo # Bug#59648 my_strtoll10_mb2: Assertion `(*endptr - s) % 2 == 0' failed.

View File

@ -2346,6 +2346,8 @@ SELECT random_bytes(1025);
SELECT random_bytes(11111);
SELECT random_bytes(2056);
#double warning for view protocol
--disable_view_protocol
SELECT length(random_bytes(10.0));
SELECT length(random_bytes(10.1));
SELECT length(random_bytes(+1e1));
@ -2356,6 +2358,7 @@ SELECT length(random_bytes("+1e1"));
SELECT length(random_bytes("10.0bunnies"));
SELECT length(random_bytes("10.1chickens"));
SELECT length(random_bytes("+1e1rabbits"));
--enable_view_protocol
--delimiter |
create procedure p1()
@ -2372,10 +2375,13 @@ drop procedure p1;
--echo #
--echo # Test For invalid argument return NULL
--echo #
#double warning for view protocol
--disable_view_protocol
SELECT random_bytes('s');
SELECT random_bytes('r');
SELECT random_bytes('res');
SELECT random_bytes('test');
--enable_view_protocol
--echo #
--echo # MDEV-29108 RANDOM_BYTES - assertion in Create_tmp_table::finalize
@ -2391,16 +2397,20 @@ DROP TABLE t;
--echo #
--echo # MDEV-29154 Excessive warnings upon a call to RANDOM_BYTES
--echo #
#double warning for view protocol
--disable_view_protocol
select length(random_bytes(cast('x' as unsigned)+1));
select repeat('.', cast('x' as unsigned)+1);
--enable_view_protocol
--echo #
--echo # MDEV-23149 Server crashes in my_convert / ErrConvString::ptr / Item_char_typecast::check_truncation_with_warn
--echo #
#double warning for view protocol
--disable_view_protocol
--replace_regex /'.*'/'...random bytes...'/
select "a" in ("abc", (convert(random_bytes(8) ,binary(2))));
--enable_view_protocol
--echo #
--echo # End of 10.10 tests
--echo #

View File

@ -391,6 +391,9 @@ set join_cache_level=@save_join_cache_level;
--echo # Bug #59326: Greedy optimizer produce stupid query execution plans.
--echo #
#double warning for view protocol
--disable_view_protocol
CREATE TABLE t10(
K INT NOT NULL AUTO_INCREMENT,
I INT,
@ -952,4 +955,6 @@ INSERT INTO t3 VALUES (5),(6);
SELECT * FROM t1 WHERE 5 IN (SELECT t1_a.a FROM t1 as t1_a WHERE 1 IN (SELECT t1_b.a FROM t1 as t1_b LEFT JOIN (t2 JOIN t3) ON (t1_b.a = t2.d) WHERE t1_b.b < 1));
drop table t1,t2,t3;
--enable_view_protocol
--echo End of 10.0 tests