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

Commitd77a506

Browse files
author
Thomas G. Lockhart
committed
Use additional ORDER BY to cope with new sorting routines.
1 parent16d65f5 commitd77a506

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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.f1AS point1,p2.f1AS point2, (p1.f1<->p2.f1)AS distance
6868
FROM POINT_TBL p1, POINT_TBL p2
6969
WHERE (p1.f1<->p2.f1)>3andp1.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.f1AS point1,p2.f1AS point2, (p1.f1<->p2.f1)AS distance

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp