mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fixed processing aggregate functions with static tables (BUG#1318)
mysql-test/r/func_group.result: test of BUG#1318 mysql-test/r/subselect.result: correct results mysql-test/t/func_group.test: test of BUG#1318 sql/sql_select.cc: hixed processing of static tables
This commit is contained in:
@ -618,3 +618,12 @@ select coercibility(max(a)) from t1;
|
||||
coercibility(max(a))
|
||||
3
|
||||
drop table t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1);
|
||||
select max(a) as b from t1 having b=1;
|
||||
b
|
||||
1
|
||||
select a from t1 having a=1;
|
||||
a
|
||||
1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user