mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Change ORDER BY to get consistant results with new sorting routines.
This commit is contained in:
parent
d8ec518000
commit
8bb569105a
@ -144,5 +144,5 @@ SELECT '' AS two, circle(f1)
|
||||
SELECT '' AS twentyfour, c1.f1 AS circle, p1.f1 AS point, (p1.f1 <-> c1.f1) AS distance
|
||||
FROM CIRCLE_TBL c1, POINT_TBL p1
|
||||
WHERE (p1.f1 <-> c1.f1) > 0
|
||||
ORDER BY distance, circle;
|
||||
ORDER BY distance, circle, point using <<;
|
||||
|
||||
|
@ -21,12 +21,12 @@ SELECT '' AS ten, f1 AS datetime
|
||||
|
||||
SELECT '' AS hundred, d.f1 AS datetime, t.f1 AS timespan, d.f1 + t.f1 AS plus
|
||||
FROM TEMP_DATETIME d, TIMESPAN_TBL t
|
||||
ORDER BY plus;
|
||||
ORDER BY plus, datetime, timespan;
|
||||
|
||||
SELECT '' AS hundred, d.f1 AS datetime, t.f1 AS timespan, d.f1 - t.f1 AS minus
|
||||
FROM TEMP_DATETIME d, TIMESPAN_TBL t
|
||||
WHERE isfinite(d.f1)
|
||||
ORDER BY minus;
|
||||
ORDER BY minus, datetime, timespan;
|
||||
|
||||
SELECT '' AS ten, d.f1 AS datetime, '1980-01-06 00:00 GMT'::datetime AS gpstime_zero,
|
||||
d.f1 - '1980-01-06 00:00 GMT'::datetime AS difference
|
||||
|
@ -57,7 +57,7 @@ SET geqo TO 'off';
|
||||
|
||||
SELECT '' AS thirtysix, p1.f1 AS point1, p2.f1 AS point2, p1.f1 <-> p2.f1 AS dist
|
||||
FROM POINT_TBL p1, POINT_TBL p2
|
||||
ORDER BY dist;
|
||||
ORDER BY dist, point1 using <<, point2 using <<;
|
||||
|
||||
SELECT '' AS thirty, p1.f1 AS point1, p2.f1 AS point2
|
||||
FROM POINT_TBL p1, POINT_TBL p2
|
||||
|
Loading…
Reference in New Issue
Block a user