Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d77a506

Browse files
author
Thomas G. Lockhart
committed
Use additional ORDER BY to cope with new sorting routines.
1 parent 16d65f5 commit d77a506

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/regress/expected/point.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ thirty|point1 |point2
179179
QUERY: SELECT '' AS fifteen, p1.f1 AS point1, p2.f1 AS point2, (p1.f1 <-> p2.f1) AS distance
180180
FROM POINT_TBL p1, POINT_TBL p2
181181
WHERE (p1.f1 <-> p2.f1) > 3 and p1.f1 << p2.f1
182-
ORDER BY distance;
182+
ORDER BY distance, point1 using <<, point2 using <<;
183183
fifteen|point1 |point2 | distance
184184
-------+----------+----------+----------------
185185
|(-3,4) |(0,0) | 5
186186
|(-10,0) |(-3,4) |8.06225774829855
187187
|(-10,0) |(0,0) | 10
188-
|(-5,-12) |(0,0) | 13
189188
|(-10,0) |(-5,-12) | 13
189+
|(-5,-12) |(0,0) | 13
190190
|(0,0) |(10,10) | 14.142135623731
191191
|(-3,4) |(10,10) |14.3178210632764
192192
|(-5,-12) |(-3,4) |16.1245154965971

src/test/regress/sql/point.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SELECT '' AS thirty, p1.f1 AS point1, p2.f1 AS point2
6767
SELECT '' AS fifteen, p1.f1 AS point1, p2.f1 AS point2, (p1.f1 <-> p2.f1) AS distance
6868
FROM POINT_TBL p1, POINT_TBL p2
6969
WHERE (p1.f1 <-> p2.f1) > 3 and p1.f1 << p2.f1
70-
ORDER BY distance;
70+
ORDER BY distance, point1 using <<, point2 using <<;
7171

7272
-- put distance result into output to allow sorting with GEQ optimizer - tgl 97/05/10
7373
SELECT '' AS three, p1.f1 AS point1, p2.f1 AS point2, (p1.f1 <-> p2.f1) AS distance

0 commit comments

Comments
 (0)