Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bb5691

Browse files
author
Thomas G. Lockhart
committed
Change ORDER BY to get consistant results with new sorting routines.
1 parent d8ec518 commit 8bb5691

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/regress/sql/geometry.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ SELECT '' AS two, circle(f1)
144144
SELECT '' AS twentyfour, c1.f1 AS circle, p1.f1 AS point, (p1.f1 <-> c1.f1) AS distance
145145
FROM CIRCLE_TBL c1, POINT_TBL p1
146146
WHERE (p1.f1 <-> c1.f1) > 0
147-
ORDER BY distance, circle;
147+
ORDER BY distance, circle, point using <<;
148148

src/test/regress/sql/horology.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ SELECT '' AS ten, f1 AS datetime
2121

2222
SELECT '' AS hundred, d.f1 AS datetime, t.f1 AS timespan, d.f1 + t.f1 AS plus
2323
FROM TEMP_DATETIME d, TIMESPAN_TBL t
24-
ORDER BY plus;
24+
ORDER BY plus, datetime, timespan;
2525

2626
SELECT '' AS hundred, d.f1 AS datetime, t.f1 AS timespan, d.f1 - t.f1 AS minus
2727
FROM TEMP_DATETIME d, TIMESPAN_TBL t
2828
WHERE isfinite(d.f1)
29-
ORDER BY minus;
29+
ORDER BY minus, datetime, timespan;
3030

3131
SELECT '' AS ten, d.f1 AS datetime, '1980-01-06 00:00 GMT'::datetime AS gpstime_zero,
3232
d.f1 - '1980-01-06 00:00 GMT'::datetime AS difference

src/test/regress/sql/point.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SET geqo TO 'off';
5757

5858
SELECT '' AS thirtysix, p1.f1 AS point1, p2.f1 AS point2, p1.f1 <-> p2.f1 AS dist
5959
FROM POINT_TBL p1, POINT_TBL p2
60-
ORDER BY dist;
60+
ORDER BY dist, point1 using <<, point2 using <<;
6161

6262
SELECT '' AS thirty, p1.f1 AS point1, p2.f1 AS point2
6363
FROM POINT_TBL p1, POINT_TBL p2

0 commit comments

Comments
 (0)