summaryrefslogtreecommitdiff
path: root/mysql-test/t/select.test
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-06-03 12:26:24 +0300
committermonty@hundin.mysql.fi <>2001-06-03 12:26:24 +0300
commit4014d2367ccdfe00670de3dfaeeef8389008b208 (patch)
treea8649f73d8dc4f4b298871c75089fd3e584adb6e /mysql-test/t/select.test
parent0efb10e71ca1bc2391ddfd711aefff0d231a6789 (diff)
downloadmariadb-git-4014d2367ccdfe00670de3dfaeeef8389008b208.tar.gz
Added ABS() to make tests more portable.
New postgresql crash-me file. Increased blob size in benchmarks from 65K to 1M.
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r--mysql-test/t/select.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test
index 10079ba2549..cdb6ee57e0f 100644
--- a/mysql-test/t/select.test
+++ b/mysql-test/t/select.test
@@ -1609,7 +1609,7 @@ select t2.fld1,count(*) from t2,t3 where t2.fld1=158402 and t3.name=t2.fld3 grou
#
select sum(Period)/count(*) from t1;
-select companynr,count(price) as "count",sum(price) as "sum" ,sum(price)/count(price)-avg(price) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
+select companynr,count(price) as "count",sum(price) as "sum" ,abs(sum(price)/count(price)-avg(price)) as "diff",(0+count(price))*companynr as func from t3 group by companynr;
select companynr,sum(price)/count(price) as avg from t3 group by companynr having avg > 70000000 order by avg;
#