Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita95eec6

Browse files
committed
Add a regress test case for SELECT count(*) FROM view, so that we'll
know if that case ever breaks again...
1 parent7c22d2e commita95eec6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,21 @@ SELECT * FROM shoelace ORDER BY sl_name;
11431143
sl8 | 21 | brown | 40 | inch | 101.6
11441144
(9 rows)
11451145

1146+
SELECT * FROM shoe ORDER BY shoename;
1147+
shoename | sh_avail | slcolor | slminlen | slminlen_cm | slmaxlen | slmaxlen_cm | slunit
1148+
------------+----------+------------+----------+-------------+----------+-------------+----------
1149+
sh1 | 2 | black | 70 | 70 | 90 | 90 | cm
1150+
sh2 | 0 | black | 30 | 76.2 | 40 | 101.6 | inch
1151+
sh3 | 4 | brown | 50 | 50 | 65 | 65 | cm
1152+
sh4 | 3 | brown | 40 | 101.6 | 50 | 127 | inch
1153+
(4 rows)
1154+
1155+
SELECT count(*) FROM shoe;
1156+
count
1157+
-------
1158+
4
1159+
(1 row)
1160+
11461161
--
11471162
-- Check that ruleutils are working
11481163
--

‎src/test/regress/sql/rules.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ DELETE FROM shoelace WHERE EXISTS
682682

683683
SELECT*FROM shoelaceORDER BY sl_name;
684684

685+
SELECT*FROM shoeORDER BY shoename;
686+
SELECTcount(*)FROM shoe;
687+
685688

686689
--
687690
-- Check that ruleutils are working

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp