mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge 10.4 into 10.5
This commit is contained in:
commit
ca8c3be47d
18 changed files with 250 additions and 49 deletions
|
|
@ -1954,6 +1954,20 @@ INSERT INTO t1 VALUES (0,'foo'),(1,'bar');
|
|||
SELECT 1 IN ( SELECT COUNT( DISTINCT f2 ) FROM t1 WHERE f1 <= 4 );
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-20922: Adding an order by changes the query results
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1(a int, b int);
|
||||
INSERT INTO t1 values (1, 100), (2, 200), (3, 100), (4, 200);
|
||||
|
||||
create view v1 as select a, b+1 as x from t1;
|
||||
|
||||
SELECT x, COUNT(DISTINCT a) AS y FROM v1 GROUP BY x ORDER BY y;
|
||||
SELECT b+1 AS x, COUNT(DISTINCT a) AS y FROM t1 GROUP BY x ORDER BY y;
|
||||
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
--echo #
|
||||
--echo # MDEV-10694 - SIGFPE and/or huge memory allocation in maria_create with distinct/group by/ rollup
|
||||
--echo #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue