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

Commit67ac380

Browse files
author
Thomas G. Lockhart
committed
Update for new psql formatting.
1 parent6e0cc2a commit67ac380

File tree

11 files changed

+1243
-1046
lines changed

11 files changed

+1243
-1046
lines changed

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

Lines changed: 181 additions & 157 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
--
2-
--errors.source
2+
--ERRORS
33
--
4-
-- $Header: /cvsroot/pgsql/src/test/regress/expected/errors.out,v 1.15 2000/01/05 17:31:08 thomas Exp $
5-
64
-- bad in postquel, but ok in postsql
75
select 1
86
--

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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
1-
QUERY: SELECT count(*) FROM onek;
2-
count
3-
-----
4-
1000
1+
--
2+
-- RANDOM
3+
-- Test the random function
4+
--
5+
-- count the number of tuples originally
6+
SELECT count(*) FROM onek;
7+
count
8+
-------
9+
1000
510
(1 row)
611

7-
QUERY: SELECT count(*) AS random INTO RANDOM_TBL
12+
-- select roughly 1/10 of the tuples
13+
-- Assume that the "onek" table has 1000 tuples
14+
-- and try to bracket the correct number so we
15+
-- have a regression test which can pass/fail
16+
-- - thomas 1998-08-17
17+
SELECT count(*) AS random INTO RANDOM_TBL
818
FROM onek WHERE oidrand(onek.oid, 10);
9-
QUERY: INSERT INTO RANDOM_TBL (random)
19+
-- select again, the count should be different
20+
INSERT INTO RANDOM_TBL (random)
1021
SELECT count(*)
1122
FROM onek WHERE oidrand(onek.oid, 10);
12-
QUERY: SELECT random, count(random) FROM RANDOM_TBL
23+
-- now test the results for randomness in the correct range
24+
SELECT random, count(random) FROM RANDOM_TBL
1325
GROUP BY random HAVING count(random) > 1;
14-
random|count
15-
------+-----
26+
random |count
27+
--------+-------
1628
(0 rows)
1729

18-
QUERY:SELECT random FROM RANDOM_TBL
30+
SELECT random FROM RANDOM_TBL
1931
WHERE random NOT BETWEEN 80 AND 120;
20-
random
21-
------
32+
random
33+
--------
2234
(0 rows)
2335

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp