mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
"select_implicit" is renamed from "junkfilter" test.
Move from last test in list up to other "select_xxx" tests.
This commit is contained in:
parent
511b368f97
commit
a3c9cce930
@ -1,3 +1,11 @@
|
||||
--
|
||||
-- select_implicit.sql
|
||||
--
|
||||
-- Test cases for queries with ordering terms missing from the target list.
|
||||
-- This used to be called "junkfilter.sql".
|
||||
-- The parser uses the term "resjunk" to handle these cases.
|
||||
-- - thomas 1998-07-09
|
||||
|
||||
-- load test data
|
||||
CREATE TABLE test_missing_target (a int, b int, c char(8));
|
||||
INSERT INTO test_missing_target VALUES (0, 1, 'XXXX');
|
||||
@ -26,7 +34,8 @@ SELECT count(*) FROM test_missing_target GROUP BY a ORDER BY b;
|
||||
SELECT count(*) FROM test_missing_target GROUP BY b ORDER BY b;
|
||||
|
||||
-- w/ existing GROUP BY target using a relation name in target
|
||||
SELECT test_missing_target.b, count(*) FROM test_missing_target GROUP BY b ORDER BY b;
|
||||
SELECT test_missing_target.b, count(*)
|
||||
FROM test_missing_target GROUP BY b ORDER BY b;
|
||||
|
||||
-- w/o existing GROUP BY target
|
||||
SELECT c FROM test_missing_target ORDER BY a;
|
||||
@ -69,6 +78,6 @@ FROM test_missing_target x, test_missing_target y
|
||||
SELECT * FROM test_missing_target2;
|
||||
|
||||
-- Cleanup
|
||||
drop table test_missing_target;
|
||||
drop table test_missing_target2;
|
||||
DROP TABLE test_missing_target;
|
||||
DROP TABLE test_missing_target2;
|
||||
|
@ -46,6 +46,7 @@ select
|
||||
select_into
|
||||
select_distinct
|
||||
select_distinct_on
|
||||
select_implicit
|
||||
select_having
|
||||
subselect
|
||||
union
|
||||
@ -60,4 +61,3 @@ hash_index
|
||||
select_views
|
||||
alter_table
|
||||
portals_p2
|
||||
junkfilter
|
||||
|
Loading…
Reference in New Issue
Block a user