mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 00:01:20 -04:00
Add some more numeric test coverage
max(numeric) wasn't tested at all, min(numeric) was only used by some unrelated tests. Add explicit tests with the other numeric aggregate functions.
This commit is contained in:
parent
f481d28232
commit
fe2bf8f810
@ -1096,6 +1096,18 @@ SELECT AVG(val) FROM num_data;
|
||||
-13430913.592242320700
|
||||
(1 row)
|
||||
|
||||
SELECT MAX(val) FROM num_data;
|
||||
max
|
||||
--------------------
|
||||
7799461.4119000000
|
||||
(1 row)
|
||||
|
||||
SELECT MIN(val) FROM num_data;
|
||||
min
|
||||
----------------------
|
||||
-83028485.0000000000
|
||||
(1 row)
|
||||
|
||||
SELECT STDDEV(val) FROM num_data;
|
||||
stddev
|
||||
-------------------------------
|
||||
|
@ -752,6 +752,8 @@ SELECT power('-inf'::numeric, '-inf');
|
||||
-- ******************************
|
||||
-- numeric AVG used to fail on some platforms
|
||||
SELECT AVG(val) FROM num_data;
|
||||
SELECT MAX(val) FROM num_data;
|
||||
SELECT MIN(val) FROM num_data;
|
||||
SELECT STDDEV(val) FROM num_data;
|
||||
SELECT VARIANCE(val) FROM num_data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user