mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-27691: make working view-protocol
Tests with checking metadata or that cannot be run with the view-protocol are excluded from --view-protocol. For tests that do not allow the use of an additional connection, the util connection is disabled with "--disable_service_connection". Also cases with bugs for --view-protocol are disabled.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#
|
||||
# simple test of group_concat function
|
||||
#
|
||||
|
||||
source include/have_sequence.inc;
|
||||
|
||||
create table t1 (grp int, a bigint unsigned, c char(10) not null, d char(10) not null);
|
||||
@ -403,7 +404,9 @@ drop table t1;
|
||||
create table t1 (f1 int unsigned, f2 varchar(255));
|
||||
insert into t1 values (1,repeat('a',255)),(2,repeat('b',255));
|
||||
--enable_metadata
|
||||
--disable_view_protocol
|
||||
select f2,group_concat(f1) from t1 group by f2;
|
||||
--enable_view_protocol
|
||||
--disable_metadata
|
||||
drop table t1;
|
||||
|
||||
@ -491,7 +494,9 @@ set names latin1;
|
||||
create table t1 (f1 int unsigned, f2 varchar(255));
|
||||
insert into t1 values (1,repeat('a',255)),(2,repeat('b',255));
|
||||
--enable_metadata
|
||||
--disable_view_protocol
|
||||
select f2,group_concat(f1) from t1 group by f2;
|
||||
--enable_view_protocol
|
||||
--disable_metadata
|
||||
drop table t1;
|
||||
|
||||
@ -931,7 +936,10 @@ SELECT * FROM (SELECT a,GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLU
|
||||
SELECT * FROM v1;
|
||||
DROP VIEW v1;
|
||||
|
||||
#enable after fix MDEV-27871
|
||||
--disable_view_protocol
|
||||
SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30');
|
||||
--enable_view_protocol
|
||||
CREATE VIEW v1 AS
|
||||
SELECT (SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a WITH ROLLUP HAVING GROUP_CONCAT(a ORDER BY a)='10,20,30');
|
||||
SELECT * FROM v1;
|
||||
|
Reference in New Issue
Block a user