Skip to content

Commit de15dde

Browse files
committed
(docqueries) making deterministic some queries
1 parent 45c588c commit de15dde

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

docqueries/src/sampledata.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ SELECT
206206
pid, ST_AsText(geom) geom,
207207
edge_id, fraction AS frac, side, distance AS dist,
208208
ST_AsText(edge) edge, ST_AsText(newPoint) newPoint
209-
FROM pointsOfInterest;
209+
FROM pointsOfInterest ORDER BY pid;
210210
pid | geom | edge_id | frac | side | dist | edge | newpoint
211211
-----+----------------+---------+------+------+------+---------------------------+--------------
212212
1 | POINT(1.8 0.4) | 1 | 0.4 | l | 0.2 | LINESTRING(1.8 0.4,2 0.4) | POINT(2 0.4)
213-
4 | POINT(0.3 1.8) | 6 | 0.3 | r | 0.2 | LINESTRING(0.3 1.8,0.3 2) | POINT(0.3 2)
214-
3 | POINT(2.6 3.2) | 12 | 0.6 | l | 0.2 | LINESTRING(2.6 3.2,2.6 3) | POINT(2.6 3)
215213
2 | POINT(4.2 2.4) | 15 | 0.4 | r | 0.2 | LINESTRING(4.2 2.4,4 2.4) | POINT(4 2.4)
214+
3 | POINT(2.6 3.2) | 12 | 0.6 | l | 0.2 | LINESTRING(2.6 3.2,2.6 3) | POINT(2.6 3)
215+
4 | POINT(0.3 1.8) | 6 | 0.3 | r | 0.2 | LINESTRING(0.3 1.8,0.3 2) | POINT(0.3 2)
216216
5 | POINT(2.9 1.8) | 5 | 0.8 | l | 0.1 | LINESTRING(2.9 1.8,3 1.8) | POINT(3 1.8)
217217
6 | POINT(2.2 1.7) | 4 | 0.7 | b | 0.2 | LINESTRING(2.2 1.7,2 1.7) | POINT(2 1.7)
218218
(6 rows)

docqueries/src/withPoints-category.pg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
-- CopyRight(c) pgRouting developers
22
-- Creative Commons Attribution-Share Alike 3.0 License : https://creativecommons.org/licenses/by-sa/3.0/
33
/* --q1 */
4-
SELECT pid, edge_id, fraction, side FROM pointsOfInterest;
4+
SELECT pid, edge_id, fraction, side FROM pointsOfInterest
5+
ORDER BY pid;
56
/* --q2 */
67
SELECT id, source, target, cost, reverse_cost
78
FROM edges WHERE id = 15;

docqueries/src/withPoints-category.result

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ BEGIN
33
SET client_min_messages TO NOTICE;
44
SET
55
/* --q1 */
6-
SELECT pid, edge_id, fraction, side FROM pointsOfInterest;
6+
SELECT pid, edge_id, fraction, side FROM pointsOfInterest
7+
ORDER BY pid;
78
pid | edge_id | fraction | side
89
-----+---------+----------+------
910
1 | 1 | 0.4 | l
10-
4 | 6 | 0.3 | r
11-
3 | 12 | 0.6 | l
1211
2 | 15 | 0.4 | r
12+
3 | 12 | 0.6 | l
13+
4 | 6 | 0.3 | r
1314
5 | 5 | 0.8 | l
1415
6 | 4 | 0.7 | b
1516
(6 rows)

tools/testers/sampledata.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ SELECT
142142
pid, ST_AsText(geom) geom,
143143
edge_id, fraction AS frac, side, distance AS dist,
144144
ST_AsText(edge) edge, ST_AsText(newPoint) newPoint
145-
FROM pointsOfInterest;
145+
FROM pointsOfInterest ORDER BY pid;
146146
/* -- p7 */
147147
/* --POINTS CREATE end */
148148

0 commit comments

Comments
 (0)