mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
This locale-specific variant file seems not to have been updated
when a test was added to select_having.sql back in June.
This commit is contained in:
@@ -21,6 +21,15 @@ SELECT b, c FROM test_having
|
||||
3 | bbbb
|
||||
(2 rows)
|
||||
|
||||
-- HAVING is equivalent to WHERE in this case
|
||||
SELECT b, c FROM test_having
|
||||
GROUP BY b, c HAVING b = 3;
|
||||
b | c
|
||||
---+----------
|
||||
3 | BBBB
|
||||
3 | bbbb
|
||||
(2 rows)
|
||||
|
||||
SELECT lower(c), count(c) FROM test_having
|
||||
GROUP BY lower(c) HAVING count(*) > 2 OR min(a) = max(a);
|
||||
lower | count
|
||||
|
Reference in New Issue
Block a user