]> granicus.if.org Git - postgresql/commitdiff
Add a regress test case for SELECT count(*) FROM view, so that we'll
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Apr 2000 00:32:57 +0000 (00:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Apr 2000 00:32:57 +0000 (00:32 +0000)
know if that case ever breaks again...

src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql

index ab332b49e68a079e0684c029e3309b18ff2339e0..edb066f116e217978f7e0e1dc0089a0638bb4263 100644 (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
 --
index 7f44412561a76fc7ac12332703ceb57f6021fd35..2b7aa33a8cf2d8dcf658c5758b1f96f3649b9602 100644 (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