Add a regress test case for SELECT count(*) FROM view, so that we'll

know if that case ever breaks again...
This commit is contained in:
Tom Lane 2000-04-20 00:32:57 +00:00
parent 7c22d2e5f0
commit a95eec6792
2 changed files with 18 additions and 0 deletions

View File

@ -1143,6 +1143,21 @@ SELECT * FROM shoelace ORDER BY sl_name;
sl8 | 21 | brown | 40 | inch | 101.6
(9 rows)
SELECT * FROM shoe ORDER BY shoename;
shoename | sh_avail | slcolor | slminlen | slminlen_cm | slmaxlen | slmaxlen_cm | slunit
------------+----------+------------+----------+-------------+----------+-------------+----------
sh1 | 2 | black | 70 | 70 | 90 | 90 | cm
sh2 | 0 | black | 30 | 76.2 | 40 | 101.6 | inch
sh3 | 4 | brown | 50 | 50 | 65 | 65 | cm
sh4 | 3 | brown | 40 | 101.6 | 50 | 127 | inch
(4 rows)
SELECT count(*) FROM shoe;
count
-------
4
(1 row)
--
-- Check that ruleutils are working
--

View File

@ -682,6 +682,9 @@ DELETE FROM shoelace WHERE EXISTS
SELECT * FROM shoelace ORDER BY sl_name;
SELECT * FROM shoe ORDER BY shoename;
SELECT count(*) FROM shoe;
--
-- Check that ruleutils are working