mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-27691: make working view-protocol
Update tests for version 10.5
This commit is contained in:
@ -52,6 +52,7 @@ SHOW CREATE DATABASE db1;
|
|||||||
DROP DATABASE db1;
|
DROP DATABASE db1;
|
||||||
|
|
||||||
# Test the case when the database is named 'comment'
|
# Test the case when the database is named 'comment'
|
||||||
|
--disable_service_connection
|
||||||
CREATE DATABASE comment COMMENT 'comment' CHARACTER SET 'latin2';
|
CREATE DATABASE comment COMMENT 'comment' CHARACTER SET 'latin2';
|
||||||
SHOW CREATE DATABASE comment;
|
SHOW CREATE DATABASE comment;
|
||||||
ALTER DATABASE comment COMMENT 'comment comment';
|
ALTER DATABASE comment COMMENT 'comment comment';
|
||||||
@ -61,3 +62,4 @@ ALTER DATABASE COMMENT 'comment';
|
|||||||
SELECT * FROM information_schema.schemata
|
SELECT * FROM information_schema.schemata
|
||||||
WHERE schema_name='comment';
|
WHERE schema_name='comment';
|
||||||
DROP DATABASE comment;
|
DROP DATABASE comment;
|
||||||
|
--enable_service_connection
|
||||||
|
@ -877,11 +877,13 @@ SELECT 0 + LEAST(TIME'-10:00:00',TIME'10:00:00') AS c;
|
|||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
CREATE TABLE t1 (a INT UNSIGNED, b TIMESTAMP);
|
CREATE TABLE t1 (a INT UNSIGNED, b TIMESTAMP);
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT COALESCE(a,b) FROM t1;
|
SELECT COALESCE(a,b) FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -1299,6 +1299,7 @@ DROP TABLE t1;
|
|||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-10569 Add RELEASE_ALL_LOCKS SQL-function
|
--echo # MDEV-10569 Add RELEASE_ALL_LOCKS SQL-function
|
||||||
--echo #
|
--echo #
|
||||||
|
--disable_view_protocol
|
||||||
|
|
||||||
--echo # Test function without any locks
|
--echo # Test function without any locks
|
||||||
SELECT RELEASE_ALL_LOCKS();
|
SELECT RELEASE_ALL_LOCKS();
|
||||||
@ -1352,3 +1353,5 @@ FROM information_schema.metadata_lock_info WHERE thread_id>0 ORDER BY TABLE_SCHE
|
|||||||
SELECT RELEASE_ALL_LOCKS();
|
SELECT RELEASE_ALL_LOCKS();
|
||||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA
|
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA
|
||||||
FROM information_schema.metadata_lock_info WHERE thread_id>0 ORDER BY TABLE_SCHEMA;
|
FROM information_schema.metadata_lock_info WHERE thread_id>0 ORDER BY TABLE_SCHEMA;
|
||||||
|
|
||||||
|
--enable_view_protocol
|
||||||
|
@ -393,8 +393,11 @@ SET default_regex_flags=DEFAULT;
|
|||||||
--error ER_REGEXP_ERROR
|
--error ER_REGEXP_ERROR
|
||||||
SELECT 'Aq' RLIKE 'A\\q';
|
SELECT 'Aq' RLIKE 'A\\q';
|
||||||
|
|
||||||
|
#double warning for view protocol
|
||||||
|
--disable_view_protocol
|
||||||
SET default_regex_flags='EXTRA';
|
SET default_regex_flags='EXTRA';
|
||||||
SELECT 'A' RLIKE 'B';
|
SELECT 'A' RLIKE 'B';
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
SET default_regex_flags=DEFAULT;
|
SET default_regex_flags=DEFAULT;
|
||||||
|
|
||||||
|
@ -995,11 +995,20 @@ select left('hello', 10);
|
|||||||
select left('hello', 0);
|
select left('hello', 0);
|
||||||
select left('hello', -1);
|
select left('hello', -1);
|
||||||
select left('hello', -4294967295);
|
select left('hello', -4294967295);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select left('hello', 4294967295);
|
select left('hello', 4294967295);
|
||||||
|
--enable_view_protocol
|
||||||
select left('hello', -4294967296);
|
select left('hello', -4294967296);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select left('hello', 4294967296);
|
select left('hello', 4294967296);
|
||||||
|
--enable_view_protocol
|
||||||
select left('hello', -4294967297);
|
select left('hello', -4294967297);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select left('hello', 4294967297);
|
select left('hello', 4294967297);
|
||||||
|
--enable_view_protocol
|
||||||
#view protocol generates additional warning
|
#view protocol generates additional warning
|
||||||
--disable_view_protocol
|
--disable_view_protocol
|
||||||
select left('hello', -18446744073709551615);
|
select left('hello', -18446744073709551615);
|
||||||
@ -1014,11 +1023,20 @@ select right('hello', 10);
|
|||||||
select right('hello', 0);
|
select right('hello', 0);
|
||||||
select right('hello', -1);
|
select right('hello', -1);
|
||||||
select right('hello', -4294967295);
|
select right('hello', -4294967295);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select right('hello', 4294967295);
|
select right('hello', 4294967295);
|
||||||
|
--enable_view_protocol
|
||||||
select right('hello', -4294967296);
|
select right('hello', -4294967296);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select right('hello', 4294967296);
|
select right('hello', 4294967296);
|
||||||
|
--enable_view_protocol
|
||||||
select right('hello', -4294967297);
|
select right('hello', -4294967297);
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
select right('hello', 4294967297);
|
select right('hello', 4294967297);
|
||||||
|
--enable_view_protocol
|
||||||
#view protocol generates additional warning
|
#view protocol generates additional warning
|
||||||
--disable_view_protocol
|
--disable_view_protocol
|
||||||
select right('hello', -18446744073709551615);
|
select right('hello', -18446744073709551615);
|
||||||
|
@ -161,12 +161,14 @@ SET SESSION debug_dbug="-d,cmp_item";
|
|||||||
--echo # MDEV-19994 Add class Function_collection
|
--echo # MDEV-19994 Add class Function_collection
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
--disable_service_connection
|
||||||
SET SESSION debug_dbug="+d,make_item_func_call_native_simulate_not_found";
|
SET SESSION debug_dbug="+d,make_item_func_call_native_simulate_not_found";
|
||||||
--error ER_PARSE_ERROR
|
--error ER_PARSE_ERROR
|
||||||
SELECT CONTAINS(POINT(1,1),POINT(1,1));
|
SELECT CONTAINS(POINT(1,1),POINT(1,1));
|
||||||
--error ER_PARSE_ERROR
|
--error ER_PARSE_ERROR
|
||||||
SELECT WITHIN(POINT(1,1),POINT(1,1));
|
SELECT WITHIN(POINT(1,1),POINT(1,1));
|
||||||
SET SESSION debug_dbug="-d,make_item_func_call_native_simulate_not_found";
|
SET SESSION debug_dbug="-d,make_item_func_call_native_simulate_not_found";
|
||||||
|
--enable_service_connection
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-20009 Add CAST(expr AS pluggable_type)
|
--echo # MDEV-20009 Add CAST(expr AS pluggable_type)
|
||||||
|
@ -3247,6 +3247,7 @@ CREATE TABLE t1 (
|
|||||||
g GEOMETRY
|
g GEOMETRY
|
||||||
) CHARACTER SET utf8;
|
) CHARACTER SET utf8;
|
||||||
|
|
||||||
|
--disable_view_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
|
|
||||||
@ -3350,6 +3351,7 @@ SELECT
|
|||||||
FROM t1;
|
FROM t1;
|
||||||
|
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-21743 Split up SUPER privilege to smaller privileges
|
--echo # MDEV-21743 Split up SUPER privilege to smaller privileges
|
||||||
--echo #
|
--echo #
|
||||||
|
--disable_service_connection
|
||||||
|
|
||||||
--let $count_sessions=1
|
--let $count_sessions=1
|
||||||
|
|
||||||
@ -83,6 +84,8 @@ let $wait_condition=
|
|||||||
DROP USER foo@localhost;
|
DROP USER foo@localhost;
|
||||||
DROP USER bar@localhost;
|
DROP USER bar@localhost;
|
||||||
|
|
||||||
|
--enable_service_connection
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.5 tests
|
--echo # End of 10.5 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -280,6 +280,7 @@ drop table t1;
|
|||||||
|
|
||||||
# Compare with hash keys
|
# Compare with hash keys
|
||||||
|
|
||||||
|
--disable_view_protocol
|
||||||
CREATE TABLE t1 (a char(1));
|
CREATE TABLE t1 (a char(1));
|
||||||
INSERT INTO t1 VALUES ('A'),('B'),('A'),('B'),('A'),('B'),(NULL),('a'),('b'),(NULL),('A'),('B'),(NULL);
|
INSERT INTO t1 VALUES ('A'),('B'),('A'),('B'),('A'),('B'),(NULL),('a'),('b'),(NULL),('A'),('B'),(NULL);
|
||||||
flush status;
|
flush status;
|
||||||
@ -305,6 +306,7 @@ show status like 'Created%tables';
|
|||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
set tmp_memory_table_size=default;
|
set tmp_memory_table_size=default;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test of key >= 256 bytes
|
# Test of key >= 256 bytes
|
||||||
|
@ -303,11 +303,8 @@ insert into t234 values(2);
|
|||||||
insert into t234 values(3);
|
insert into t234 values(3);
|
||||||
insert into t234 values(4);
|
insert into t234 values(4);
|
||||||
|
|
||||||
#enable view protocol in 10.5
|
|
||||||
--disable_view_protocol
|
|
||||||
--sorted_result
|
--sorted_result
|
||||||
select * from t13 union select * from t234 intersect select * from t12;
|
select * from t13 union select * from t234 intersect select * from t12;
|
||||||
--enable_view_protocol
|
|
||||||
|
|
||||||
drop table t12,t13,t234;
|
drop table t12,t13,t234;
|
||||||
|
|
||||||
|
@ -687,8 +687,10 @@ set optimizer_trace='enabled=on';
|
|||||||
--echo # Test many rows to see output of big cost numbers
|
--echo # Test many rows to see output of big cost numbers
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
--disable_view_protocol
|
||||||
select count(*) from seq_1_to_10000000;
|
select count(*) from seq_1_to_10000000;
|
||||||
select * from INFORMATION_SCHEMA.OPTIMIZER_TRACE;
|
select * from INFORMATION_SCHEMA.OPTIMIZER_TRACE;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-22891: Optimizer trace: const tables are not clearly visible
|
--echo # MDEV-22891: Optimizer trace: const tables are not clearly visible
|
||||||
@ -708,14 +710,20 @@ insert into t3 select a,a from t0;
|
|||||||
explain
|
explain
|
||||||
select * from t1 left join (t2 join t3 on t3.pk=1000) on t2.a=t1.a and t2.pk is null;
|
select * from t1 left join (t2 join t3 on t3.pk=1000) on t2.a=t1.a and t2.pk is null;
|
||||||
|
|
||||||
|
#enable after fix MDEV-27871
|
||||||
|
--disable_view_protocol
|
||||||
select JSON_DETAILED(JSON_EXTRACT(trace, '$**.mark_join_nest_as_const'))
|
select JSON_DETAILED(JSON_EXTRACT(trace, '$**.mark_join_nest_as_const'))
|
||||||
from information_schema.optimizer_trace;
|
from information_schema.optimizer_trace;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
drop table t0, t1, t2, t3;
|
drop table t0, t1, t2, t3;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-23767: IN-to-subquery conversion is not visible in optimizer trace
|
--echo # MDEV-23767: IN-to-subquery conversion is not visible in optimizer trace
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
#enable after fix MDEV-27871
|
||||||
|
--disable_view_protocol
|
||||||
create table t0 (a int);
|
create table t0 (a int);
|
||||||
INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||||
|
|
||||||
@ -738,6 +746,7 @@ from information_schema.optimizer_trace;
|
|||||||
|
|
||||||
set in_predicate_conversion_threshold=@tmp;
|
set in_predicate_conversion_threshold=@tmp;
|
||||||
drop table t0;
|
drop table t0;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
--echo # End of 10.5 tests
|
--echo # End of 10.5 tests
|
||||||
set optimizer_trace='enabled=off';
|
set optimizer_trace='enabled=off';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
--source include/have_debug_sync.inc
|
--source include/have_debug_sync.inc
|
||||||
--source include/have_innodb.inc
|
--source include/have_innodb.inc
|
||||||
|
--source include/no_view_protocol.inc
|
||||||
|
|
||||||
#set use_stat_tables='preferably_for_queries';
|
#set use_stat_tables='preferably_for_queries';
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
|
@ -28,8 +28,10 @@ insert into t234 values(2);
|
|||||||
insert into t234 values(3);
|
insert into t234 values(3);
|
||||||
insert into t234 values(4);
|
insert into t234 values(4);
|
||||||
|
|
||||||
|
#enable after fix MDEV-29553
|
||||||
|
--disable_view_protocol
|
||||||
select * from t13 union select * from t234 intersect select * from t12;
|
select * from t13 union select * from t234 intersect select * from t12;
|
||||||
|
--enable_view_protocol
|
||||||
set SQL_MODE=default;
|
set SQL_MODE=default;
|
||||||
|
|
||||||
drop table t1,t2,t3;
|
drop table t1,t2,t3;
|
||||||
@ -45,6 +47,8 @@ insert into t3 values (1,1),(3,3);
|
|||||||
|
|
||||||
set SQL_MODE=ORACLE;
|
set SQL_MODE=ORACLE;
|
||||||
|
|
||||||
|
#enable after fix MDEV-29553
|
||||||
|
--disable_view_protocol
|
||||||
select a,b from t1 union all select c,d from t2 intersect select e,f from t3 union all select 4,'4' from dual;
|
select a,b from t1 union all select c,d from t2 intersect select e,f from t3 union all select 4,'4' from dual;
|
||||||
explain extended
|
explain extended
|
||||||
select a,b from t1 union all select c,d from t2 intersect select e,f from t3 union all select 4,'4' from dual;
|
select a,b from t1 union all select c,d from t2 intersect select e,f from t3 union all select 4,'4' from dual;
|
||||||
@ -52,6 +56,7 @@ select a,b from t1 union all select c,d from t2 intersect select e,f from t3 uni
|
|||||||
select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
|
select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
|
||||||
explain extended
|
explain extended
|
||||||
select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
|
select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
select e,f from t3 intersect select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
|
select e,f from t3 intersect select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
|
||||||
explain extended
|
explain extended
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
source include/not_embedded.inc;
|
source include/not_embedded.inc;
|
||||||
source include/not_aix.inc;
|
source include/not_aix.inc;
|
||||||
|
|
||||||
|
-- source include/no_view_protocol.inc
|
||||||
|
|
||||||
let $have_plugin = `SELECT COUNT(*) FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_STATUS='ACTIVE' AND PLUGIN_NAME = 'THREAD_POOL_GROUPS'`;
|
let $have_plugin = `SELECT COUNT(*) FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_STATUS='ACTIVE' AND PLUGIN_NAME = 'THREAD_POOL_GROUPS'`;
|
||||||
if(!$have_plugin)
|
if(!$have_plugin)
|
||||||
{
|
{
|
||||||
|
@ -135,6 +135,7 @@ DROP TABLE t1;
|
|||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
CREATE TABLE t1 (a VARCHAR(39));
|
CREATE TABLE t1 (a VARCHAR(39));
|
||||||
|
--disable_view_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT
|
SELECT
|
||||||
CAST(a AS BINARY(0)),
|
CAST(a AS BINARY(0)),
|
||||||
@ -153,4 +154,5 @@ SELECT
|
|||||||
CAST(a AS BINARY(16777216))
|
CAST(a AS BINARY(16777216))
|
||||||
FROM t1;
|
FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@ -556,11 +556,13 @@ DELIMITER ;$$
|
|||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
CREATE TABLE t1 (b BIT(1));
|
CREATE TABLE t1 (b BIT(1));
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT MIN(CASE WHEN 0 THEN b END) FROM t1;
|
SELECT MIN(CASE WHEN 0 THEN b END) FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
CREATE TABLE t2 AS SELECT MIN(CASE WHEN 0 THEN b END) FROM t1;
|
CREATE TABLE t2 AS SELECT MIN(CASE WHEN 0 THEN b END) FROM t1;
|
||||||
SHOW CREATE TABLE t2;
|
SHOW CREATE TABLE t2;
|
||||||
DROP TABLE t2;
|
DROP TABLE t2;
|
||||||
|
@ -337,8 +337,11 @@ select format(truncate('1.7976931348623157E+308',-12),1,'fr_BE') as foo;
|
|||||||
--echo # MDEV-17249 MAKETIME(-1e50,0,0) returns a wrong result
|
--echo # MDEV-17249 MAKETIME(-1e50,0,0) returns a wrong result
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
#enable after fix MDEV-29552
|
||||||
|
--disable_view_protocol
|
||||||
SELECT LEFT('a',EXP(50));
|
SELECT LEFT('a',EXP(50));
|
||||||
SELECT LEFT('a', COALESCE(1e30));
|
SELECT LEFT('a', COALESCE(1e30));
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
CREATE TABLE t1 (a FLOAT);
|
CREATE TABLE t1 (a FLOAT);
|
||||||
INSERT INTO t1 VALUES (1e30);
|
INSERT INTO t1 VALUES (1e30);
|
||||||
|
@ -80,12 +80,14 @@ CREATE TABLE t1 (
|
|||||||
js2 TEXT CHECK (LENGTH(js2) > 0 AND JSON_VALID(js2)),
|
js2 TEXT CHECK (LENGTH(js2) > 0 AND JSON_VALID(js2)),
|
||||||
js3 TEXT CHECK (LENGTH(js2) > 0 OR JSON_VALID(js2))
|
js3 TEXT CHECK (LENGTH(js2) > 0 OR JSON_VALID(js2))
|
||||||
) CHARACTER SET utf8;
|
) CHARACTER SET utf8;
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
SELECT js0, JSON_COMPACT(js0), JSON_COMPACT('{}') FROM t1;
|
SELECT js0, JSON_COMPACT(js0), JSON_COMPACT('{}') FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
|
||||||
@ -95,6 +97,7 @@ DROP TABLE t1;
|
|||||||
|
|
||||||
CREATE TABLE t1 (a JSON);
|
CREATE TABLE t1 (a JSON);
|
||||||
INSERT INTO t1 VALUES ('{"a":"b"}');
|
INSERT INTO t1 VALUES ('{"a":"b"}');
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT a, JSON_COMPACT(a), COALESCE(a) FROM t1;
|
SELECT a, JSON_COMPACT(a), COALESCE(a) FROM t1;
|
||||||
@ -102,6 +105,7 @@ SELECT JSON_ARRAYAGG(1), JSON_ARRAYAGG(a) FROM t1;
|
|||||||
SELECT JSON_OBJECTAGG('a','b'), JSON_OBJECTAGG('a',a) FROM t1;
|
SELECT JSON_OBJECTAGG('a','b'), JSON_OBJECTAGG('a',a) FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
|
||||||
@ -109,12 +113,13 @@ DROP TABLE t1;
|
|||||||
--echo # MDEV-27018 IF and COALESCE lose "json" property
|
--echo # MDEV-27018 IF and COALESCE lose "json" property
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT json_object('a', (SELECT json_objectagg(b, c) FROM (SELECT 'b','c') d)) AS j FROM DUAL;
|
SELECT json_object('a', (SELECT json_objectagg(b, c) FROM (SELECT 'b','c') d)) AS j FROM DUAL;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.5 tests
|
--echo # End of 10.5 tests
|
||||||
|
@ -367,12 +367,14 @@ DROP TABLE t2,t1;
|
|||||||
CREATE TABLE t1 (a YEAR);
|
CREATE TABLE t1 (a YEAR);
|
||||||
INSERT INTO t1 VALUES (2000),(2001);
|
INSERT INTO t1 VALUES (2000),(2001);
|
||||||
SELECT MAX( NULLIF( a, 1970 ) ) AS f FROM t1;
|
SELECT MAX( NULLIF( a, 1970 ) ) AS f FROM t1;
|
||||||
|
--disable_view_protocol
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
--enable_metadata
|
--enable_metadata
|
||||||
SELECT NULLIF(a, 1970) AS f FROM t1 ORDER BY a;
|
SELECT NULLIF(a, 1970) AS f FROM t1 ORDER BY a;
|
||||||
SELECT MAX(NULLIF(a, 1970)) AS f FROM t1;
|
SELECT MAX(NULLIF(a, 1970)) AS f FROM t1;
|
||||||
--disable_metadata
|
--disable_metadata
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
--enable_view_protocol
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +64,10 @@ select name from t1 a where (select percentile_disc(0.5) within group (order by
|
|||||||
--error ER_WRONG_TYPE_FOR_PERCENTILE_FUNC
|
--error ER_WRONG_TYPE_FOR_PERCENTILE_FUNC
|
||||||
select score, percentile_cont(0.5) within group(order by name) over (partition by score) from t1;
|
select score, percentile_cont(0.5) within group(order by name) over (partition by score) from t1;
|
||||||
|
|
||||||
|
#enable after fix MDEV-27871
|
||||||
|
--disable_view_protocol
|
||||||
select score, percentile_disc(0.5) within group(order by name) over (partition by score) from t1;
|
select score, percentile_disc(0.5) within group(order by name) over (partition by score) from t1;
|
||||||
|
--enable_view_protocol
|
||||||
|
|
||||||
--echo #parameter value should be in the range of [0,1]
|
--echo #parameter value should be in the range of [0,1]
|
||||||
--error ER_ARGUMENT_OUT_OF_RANGE
|
--error ER_ARGUMENT_OUT_OF_RANGE
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
--source include/not_valgrind.inc
|
--source include/not_valgrind.inc
|
||||||
--source include/not_embedded.inc
|
--source include/not_embedded.inc
|
||||||
|
--source include/no_view_protocol.inc
|
||||||
|
|
||||||
# Common part with XA binlogging testing
|
# Common part with XA binlogging testing
|
||||||
call mtr.add_suppression("You need to use --log-bin to make --log-slave-updates work.");
|
call mtr.add_suppression("You need to use --log-bin to make --log-slave-updates work.");
|
||||||
|
Reference in New Issue
Block a user