diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-10 17:47:05 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-10 17:47:05 +0300 |
commit | 73e86d62dedbf29fe76cc05270e6245432206201 (patch) | |
tree | cafcb1d0d2a42df1417e331bc30c6c6e12c78cc9 /mysql-test | |
parent | c0dbd4d9811e4c2433cd651d34bd5c6af72f5593 (diff) | |
parent | aa3c4306754c3db0c2ea3a6db0cffcb6bc1ed0f7 (diff) | |
download | mariadb-git-73e86d62dedbf29fe76cc05270e6245432206201.tar.gz |
merge
BitKeeper/etc/logging_ok:
auto-union
innobase/buf/buf0flu.c:
Auto merged
sql/ha_myisam.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_select.cc:
Auto merged
Docs/manual.texi:
Will merge later..
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/install_test_db.sh | 2 | ||||
-rw-r--r-- | mysql-test/t/distinct.test | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/install_test_db.sh b/mysql-test/install_test_db.sh index 049ac6b1cd7..6fe736644d3 100644 --- a/mysql-test/install_test_db.sh +++ b/mysql-test/install_test_db.sh @@ -59,7 +59,7 @@ else basedir=. rm -rf share mkdir share -ln -sf ../../sql/share share/mysql +ln -f -s ../../sql/share share/mysql fi # Initialize variables diff --git a/mysql-test/t/distinct.test b/mysql-test/t/distinct.test index 29b2fddbe5f..bf8a03ac40d 100644 --- a/mysql-test/t/distinct.test +++ b/mysql-test/t/distinct.test @@ -198,3 +198,12 @@ insert into t2 values (1,1),(2,2),(3,3); select t1.a,sec_to_time(sum(time_to_sec(t))) from t1 left join t2 on (t1.b=t2.a) group by t1.a,t2.b; select distinct t1.a,sec_to_time(sum(time_to_sec(t))) from t1 left join t2 on (t1.b=t2.a) group by t1.a,t2.b; drop table t1,t2; + +# +# Test problem with DISTINCT and HAVING +# +create table t1 (a int not null,b char(5), c text); +insert into t1 (a) values (1),(2),(3),(4),(1),(2),(3),(4); +select distinct a from t1 group by b,a having a > 2 order by a desc; +select distinct a,c from t1 group by b,c,a having a > 2 order by a desc; +drop table t1; |