mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge 10.2 into 10.3
This commit is contained in:
commit
acf6f92aa9
60 changed files with 1130 additions and 287 deletions
|
|
@ -2187,3 +2187,17 @@ eval explain extended $q;
|
|||
set optimizer_switch= @save_optimizer_switch;
|
||||
|
||||
DROP TABLE books, wings;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17796: query with DISTINCT, GROUP BY and ORDER BY
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (id int, gr int, v1 varchar(10));
|
||||
INSERT INTO t1 VALUES (1,1,'A'), (2,2,'B'), (3,3,NULL), (4,4,'C');
|
||||
|
||||
SELECT DISTINCT NULLIF(GROUP_CONCAT(v1), null) FROM t1
|
||||
WHERE gr in (4,2)
|
||||
GROUP BY id
|
||||
ORDER BY id+1 DESC;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue