diff options
author | unknown <bell@laptop.sanja.is.com.ua> | 2003-09-20 18:30:36 +0300 |
---|---|---|
committer | unknown <bell@laptop.sanja.is.com.ua> | 2003-09-20 18:30:36 +0300 |
commit | e603c1efde1bb20d983840a282dc4c5b7beaf8e6 (patch) | |
tree | 76bc7cac6aca2dad20557d13609ee07fda511a04 /mysql-test/t | |
parent | cbc431dbdfcd9a99e5c74d88cb0ac0b2ae65f918 (diff) | |
download | mariadb-git-e603c1efde1bb20d983840a282dc4c5b7beaf8e6.tar.gz |
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
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/func_group.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_group.test b/mysql-test/t/func_group.test index 8a43716d854..ac3a1986d93 100644 --- a/mysql-test/t/func_group.test +++ b/mysql-test/t/func_group.test @@ -360,3 +360,12 @@ create table t1 (a char(10)); insert into t1 values ('a'),('b'),('c'); select coercibility(max(a)) from t1; drop table t1; + +# +# aggregate functions on static tables +# +create table t1 (a int); +insert into t1 values (1); +select max(a) as b from t1 having b=1; +select a from t1 having a=1; +drop table t1; |