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

Commitb402503

Browse files
committed
Adjust data types in some of the UNION tests to avoid potentially
platform-dependent results, as per example from Larry Rosenman.
1 parenteeaf5f0 commitb402503

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ SELECT 1 AS two UNION SELECT 2.2;
7474
2.2
7575
(2 rows)
7676

77-
SELECT 1 AS one UNION SELECT 1.0;
77+
SELECT 1 AS one UNION SELECT 1.0::float8;
7878
one
7979
-----
8080
1
@@ -87,10 +87,10 @@ SELECT 1.1 AS two UNION ALL SELECT 2;
8787
2
8888
(2 rows)
8989

90-
SELECT 1.0 AS two UNION ALL SELECT 1;
90+
SELECT 1.0::float8 AS two UNION ALL SELECT 1;
9191
two
9292
-----
93-
1.0
93+
1
9494
1
9595
(2 rows)
9696

@@ -102,7 +102,7 @@ SELECT 1.1 AS three UNION SELECT 2 UNION SELECT 3;
102102
3
103103
(3 rows)
104104

105-
SELECT 1.1 AS two UNION SELECT 2 UNION SELECT 2.0;
105+
SELECT 1.1::float8 AS two UNION SELECT 2 UNION SELECT 2.0::float8;
106106
two
107107
-----
108108
1.1

‎src/test/regress/sql/union.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ SELECT 1.1 AS two UNION SELECT 2;
2626

2727
SELECT1AS twoUNIONSELECT2.2;
2828

29-
SELECT1AS oneUNIONSELECT1.0;
29+
SELECT1AS oneUNIONSELECT1.0::float8;
3030

3131
SELECT1.1AS twoUNION ALLSELECT2;
3232

33-
SELECT1.0AS twoUNION ALLSELECT1;
33+
SELECT1.0::float8AS twoUNION ALLSELECT1;
3434

3535
SELECT1.1AS threeUNIONSELECT2UNIONSELECT3;
3636

37-
SELECT1.1AS twoUNIONSELECT2UNIONSELECT2.0;
37+
SELECT1.1::float8AS twoUNIONSELECT2UNIONSELECT2.0::float8;
3838

3939
SELECT1.1AS threeUNIONSELECT2UNION ALLSELECT2;
4040

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp