1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

disable tests incompatible with Maxscale

This commit is contained in:
Timofey Turenko
2025-06-09 12:42:30 +03:00
committed by Leonid Fedorov
parent cfaeeeb449
commit 1640e87058
17 changed files with 123 additions and 7 deletions

View File

@ -2,6 +2,10 @@
# Testing replace with null args
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
SET sql_mode=ORACLE;
SET default_storage_engine=ColumnStore;
--echo #

View File

@ -0,0 +1,31 @@
SET sql_mode=ORACLE;
SET default_storage_engine=ColumnStore;
#
# MDEV-13003 - Oracle compatibility : Replace function
#
SELECT REPLACE(null,'a','b') ;
REPLACE(null,'a','b')
NULL
SELECT REPLACE('ab',null,'b') ;
REPLACE('ab',null,'b')
ab
SELECT REPLACE('ab','a',null) ;
REPLACE('ab','a',null)
b
SELECT REPLACE('ab',null,null) ;
REPLACE('ab',null,null)
ab
SELECT REPLACE('aaa','a',null) ;
REPLACE('aaa','a',null)
NULL
EXPLAIN EXTENDED SELECT REPLACE('ab','a',null) ;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
CREATE VIEW v1 AS SELECT REPLACE('ab','a',null) ;
SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection
v1 CREATE VIEW "v1" AS select replace('ab','a',NULL) AS "REPLACE('ab','a',null)" latin1 latin1_swedish_ci
SELECT * FROM v1;
REPLACE('ab','a',null)
b
DROP VIEW v1;

View File

@ -0,0 +1,33 @@
#
# Testing replace with null args
#
--source ../include/have_columnstore.inc
--source ../include/detect_no_maxscale.inc
SET sql_mode=ORACLE;
SET default_storage_engine=ColumnStore;
--echo #
--echo # MDEV-13003 - Oracle compatibility : Replace function
--echo #
--disable_query_log
--disable_warnings
DROP VIEW IF EXISTS v1;
--enable_query_log
SELECT REPLACE(null,'a','b') ;
SELECT REPLACE('ab',null,'b') ;
SELECT REPLACE('ab','a',null) ;
SELECT REPLACE('ab',null,null) ;
SELECT REPLACE('aaa','a',null) ;
EXPLAIN EXTENDED SELECT REPLACE('ab','a',null) ;
CREATE VIEW v1 AS SELECT REPLACE('ab','a',null) ;
SHOW CREATE VIEW v1;
SELECT * FROM v1;
DROP VIEW v1;
--enable_warnings

View File

@ -1,3 +1,6 @@
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
SET sql_mode=ORACLE;
SET default_storage_engine=ColumnStore;