-
-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1168 from cvvergara/release/2.5
Fixes for Release/2.5
- Loading branch information
Showing
14 changed files
with
22,013 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ SET | |
SELECT version FROM pgr_version(); | ||
version | ||
--------- | ||
2.5.4 | ||
2.5.5 | ||
(1 row) | ||
|
||
-- q2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
\i setup.sql | ||
\i tmp_net.sql | ||
|
||
SELECT plan(71); | ||
|
||
|
||
CREATE or REPLACE FUNCTION issue1154() | ||
RETURNS SETOF TEXT AS | ||
$BODY$ | ||
DECLARE | ||
dd_query TEXT; | ||
dijkstra_sql TEXT; | ||
astar_sql TEXT; | ||
vids TEXT; | ||
data INTEGER[]; | ||
cant INTEGER; | ||
BEGIN | ||
data := ARRAY[ | ||
28143,37447,43401,50409,91800, | ||
98234,108908,1888,1897,85914, | ||
1898,112714,11851,31406, | ||
37961,43534,50994,57875,71749, | ||
77860,4424,4641,35309,53002, | ||
57762,75549,79856,80019,88626, | ||
89435,116859,37736,51812,97808]::INTEGER[]; | ||
|
||
RETURN QUERY | ||
SELECT is_empty($$ | ||
SELECT * FROM tmp_net WHERE target = 85930 | ||
UNION | ||
SELECT * FROM tmp_net WHERE target = 85930 | ||
$$); | ||
|
||
cant := array_length(data, 1); | ||
|
||
FOR i IN 1.. cant LOOP | ||
|
||
dd_query := format($$ | ||
SELECT | ||
route.node AS node_id, | ||
route.agg_cost | ||
FROM pgr_drivingdistance( | ||
'SELECT * FROM tmp_net', | ||
ARRAY[%1$s, %2$s]::INTEGER[], | ||
2680, equicost:=TRUE, directed:=TRUE) route; | ||
$$, 85930, data[i]); | ||
|
||
|
||
RETURN QUERY SELECT lives_ok(dd_query, 'i=' || data[i]); | ||
|
||
dd_query := format($$ | ||
SELECT | ||
route.node AS node_id, | ||
route.agg_cost | ||
FROM pgr_drivingdistance( | ||
'SELECT * FROM tmp_net', | ||
ARRAY[%1$s, %2$s]::INTEGER[], | ||
2680, equicost:=TRUE, directed:=TRUE) route; | ||
$$, data[i], 85930); | ||
|
||
|
||
RETURN QUERY SELECT lives_ok(dd_query, 'i=' || data[i]); | ||
|
||
END LOOP; | ||
|
||
RETURN; | ||
END | ||
$BODY$ | ||
language plpgsql; | ||
|
||
SELECT * FROM issue1154(); | ||
|
||
SELECT lives_ok($$ | ||
SELECT * | ||
FROM pgr_drivingdistance( | ||
'SELECT * FROM tmp_net', | ||
ARRAY[ | ||
28143,37447,43401,50409,91800, | ||
98234,108908,1888,1897,85914, | ||
1898,85930,112714,11851,31406, | ||
37961,43534,50994,57875,71749, | ||
77860,4424,4641,35309,53002, | ||
57762,75549,79856,80019,88626, | ||
89435,116859,37736,51812,97808]::INTEGER[], | ||
2680, | ||
equicost:=TRUE, | ||
directed:=TRUE | ||
) | ||
$$); | ||
|
||
SELECT bag_has($$ | ||
SELECT * | ||
FROM pgr_drivingdistance( | ||
'SELECT * FROM tmp_net', | ||
ARRAY[ | ||
28143,37447,43401,50409,91800, | ||
98234,108908,1888,1897,85914, | ||
1898,85930,112714,11851,31406, | ||
37961,43534,50994,57875,71749, | ||
77860,4424,4641,35309,53002, | ||
57762,75549,79856,80019,88626, | ||
89435,116859,37736,51812,97808]::INTEGER[], | ||
2680, | ||
equicost:=TRUE, | ||
directed:=TRUE | ||
)$$, | ||
$$ VALUES (12, 85930, 85930, -1, 0, 0) $$ | ||
); | ||
|
||
SELECT finish(); | ||
ROLLBACK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
SET(OLD_SIGNATURES | ||
2.5.4 | ||
2.5.3 | ||
2.5.2 | ||
2.5.1 | ||
|
Oops, something went wrong.