mirror of
https://github.com/MariaDB/server.git
synced 2025-10-25 18:38:00 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/12887-bug-5.0-mysql
This commit is contained in:
@@ -580,6 +580,18 @@ a LENGTH(a) COUNT(*)
|
||||
2 1 1
|
||||
NULL NULL 2
|
||||
DROP TABLE t1;
|
||||
create table t1 ( a varchar(9), b int );
|
||||
insert into t1 values('a',1),(null,2);
|
||||
select a, max(b) from t1 group by a with rollup;
|
||||
a max(b)
|
||||
NULL 2
|
||||
a 1
|
||||
NULL 2
|
||||
select distinct a, max(b) from t1 group by a with rollup;
|
||||
a max(b)
|
||||
NULL 2
|
||||
a 1
|
||||
drop table t1;
|
||||
CREATE TABLE t1(id int, type char(1));
|
||||
INSERT INTO t1 VALUES
|
||||
(1,"A"),(2,"C"),(3,"A"),(4,"A"),(5,"B"),
|
||||
|
||||
Reference in New Issue
Block a user