Skip to content

Commit b402503

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 parent eeaf5f0 commit b402503

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
SELECT 1 AS two UNION SELECT 2.2;
2828

29-
SELECT 1 AS one UNION SELECT 1.0;
29+
SELECT 1 AS one UNION SELECT 1.0::float8;
3030

3131
SELECT 1.1 AS two UNION ALL SELECT 2;
3232

33-
SELECT 1.0 AS two UNION ALL SELECT 1;
33+
SELECT 1.0::float8 AS two UNION ALL SELECT 1;
3434

3535
SELECT 1.1 AS three UNION SELECT 2 UNION SELECT 3;
3636

37-
SELECT 1.1 AS two UNION SELECT 2 UNION SELECT 2.0;
37+
SELECT 1.1::float8 AS two UNION SELECT 2 UNION SELECT 2.0::float8;
3838

3939
SELECT 1.1 AS three UNION SELECT 2 UNION ALL SELECT 2;
4040

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy