mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added ABS() to make tests more portable.
New postgresql crash-me file. Increased blob size in benchmarks from 65K to 1M. mysql-test/t/select.test: Added ABS() to make tests more portable mysys/tree.c: Added missing call to tree->free (MySQL didn't use this) sql-bench/Comments/postgres.benchmark: Updated documentation sql-bench/bench-init.pl.sh: Updated version number (changed blob size) sql-bench/limits/pg.cfg: New postgres results sql-bench/server-cfg.sh: Updated to PostgreSQL 7.1.1 sql-bench/test-connect.sh: Changed select_big -> select_big_str tests/fork_big.pl: Added count(distinct) test
This commit is contained in:
@ -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;
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user