mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
fixed aggregate function processing in VIEWs (BUG#4665)
This commit is contained in:
@@ -1074,3 +1074,12 @@ s1 s2
|
||||
2 3
|
||||
drop view v1;
|
||||
drop tables t1, t2;
|
||||
create table t1 (col1 int);
|
||||
insert into t1 values (1);
|
||||
create view v1 as select count(*) from t1;
|
||||
insert into t1 values (null);
|
||||
select * from v1;
|
||||
count(*)
|
||||
2
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
@@ -1016,3 +1016,14 @@ create view v1 as select * from t1,t2 union all select * from t1,t2;
|
||||
select * from v1;
|
||||
drop view v1;
|
||||
drop tables t1, t2;
|
||||
|
||||
#
|
||||
# Aggregate functions in view list
|
||||
#
|
||||
create table t1 (col1 int);
|
||||
insert into t1 values (1);
|
||||
create view v1 as select count(*) from t1;
|
||||
insert into t1 values (null);
|
||||
select * from v1;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user