mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -1210,11 +1210,11 @@ select 4
|
||||
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
|
||||
;
|
||||
|
||||
--error ER_AGGREGATE_ORDER_FOR_UNION
|
||||
eval $my_stmt;
|
||||
|
||||
--error ER_AGGREGATE_ORDER_FOR_UNION
|
||||
eval prepare stmt1 from '$my_stmt';
|
||||
execute stmt1;
|
||||
execute stmt1;
|
||||
|
||||
let $my_stmt=
|
||||
select 1 as foo
|
||||
@ -1227,13 +1227,11 @@ union
|
||||
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
|
||||
;
|
||||
|
||||
--error ER_AGGREGATE_ORDER_FOR_UNION
|
||||
eval $my_stmt;
|
||||
|
||||
--error ER_AGGREGATE_ORDER_FOR_UNION
|
||||
eval prepare stmt1 from '$my_stmt';
|
||||
execute stmt1;
|
||||
execute stmt1;
|
||||
|
||||
deallocate prepare stmt1;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
@ -1663,6 +1661,17 @@ eval EXPLAIN EXTENDED $q;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-10120: Wrong result of UNION .. ORDER BY GROUP_CONCAT()
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT t1 VALUES (1),(2),(3);
|
||||
|
||||
--error ER_AGGREGATE_ORDER_FOR_UNION
|
||||
(SELECT 1 AS a) UNION (SELECT a FROM t1 GROUP BY a) ORDER BY GROUP_CONCAT(a);
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Start of 10.3 tests
|
||||
|
Reference in New Issue
Block a user