Skip to content

Commit

Permalink
(lint) Removing trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Aug 13, 2024
1 parent 0fb07be commit 0a3b989
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ BEGIN
b AS (SELECT source,edge FROM result2 WHERE source IN (SELECT id FROM a)),
c AS (SELECT id,source FROM edges WHERE id IN (SELECT edge FROM b))
UPDATE result2_vertices_pgr AS d SET original_id = (SELECT source FROM c WHERE c.id = (SELECT edge FROM b WHERE b.source = d.id)) WHERE id IN (SELECT id FROM a);

WITH a AS (SELECT id FROM result2_vertices_pgr WHERE original_id IS NULL),
b AS (SELECT target,edge FROM result2 WHERE target IN (SELECT id FROM a)),
c AS (SELECT id,target FROM edges WHERE id IN (SELECT edge FROM b))
Expand Down
8 changes: 4 additions & 4 deletions pgtap/traversal/breadthFirstSearch/edge_cases.pg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SELECT is_empty('
SELECT * from pgr_breadthFirstSearch(''SELECT id, source, target, cost, reverse_cost from edges where id>18 '',array[2,5], 2, directed := false)', '13');


-- vertex not present in graph tests
-- vertex not present in graph tests

-- directed graph
SELECT is_empty('
Expand Down Expand Up @@ -85,7 +85,7 @@ SELECT * from pgr_breadthFirstSearch(''SELECT id, source, target, cost, reverse_
SELECT is_empty('
SELECT * from pgr_breadthFirstSearch(''SELECT id, source, target, cost, reverse_cost from edges'',array[20,-10], 2, directed := false)', '25');

-- negative depth tests
-- negative depth tests

PREPARE breadthFirstSearch26 AS
SELECT *
Expand Down Expand Up @@ -141,8 +141,8 @@ FROM pgr_breadthFirstSearch(
SELECT throws_ok('breadthFirstSearch29',
'P0001',
'Negative value found on ''max_depth''',
'29: Negative max_depth throws');
'29: Negative max_depth throws');


SELECT * FROM finish();
ROLLBACK;
ROLLBACK;
2 changes: 1 addition & 1 deletion sql/legacy/tsp/_makeDistanceMatrix.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ THE SOFTWARE.


create or replace function _pgr_makeDistanceMatrix
(sqlin text,
(sqlin text,

OUT dmatrix double precision[],
OUT ids integer[])
Expand Down
2 changes: 1 addition & 1 deletion sql/legacy/tsp/tsp_v2.0_coordinates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


CREATE OR REPLACE FUNCTION pgr_tsp(
sql text,
sql text,
start_id INTEGER,
end_id INTEGER default (-1),

Expand Down
2 changes: 1 addition & 1 deletion sql/legacy/tsp/tsp_v2.0_matrix.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ debuglevel TEXT;
BEGIN
RAISE NOTICE 'Deprecated Signature pgr_tsp(float8[][], integer, integer)';

CREATE TEMP TABLE ___tmp2 ON COMMIT DROP AS
CREATE TEMP TABLE ___tmp2 ON COMMIT DROP AS
SELECT start_vid, end_vid, agg_cost FROM _pgr_unnest_matrix( matrix );


Expand Down
2 changes: 1 addition & 1 deletion sql/spanningTree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SET(LOCAL_FILES
_prim.sql
_kruskal.sql
#_randomSpanTree.sql

prim.sql
primDFS.sql
primBFS.sql
Expand Down
2 changes: 1 addition & 1 deletion src/breadthFirstSearch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ ADD_LIBRARY(breadthFirstSearch OBJECT
breadthFirstSearch.c
breadthFirstSearch_driver.cpp
binaryBreadthFirstSearch.c
binaryBreadthFirstSearch_driver.cpp
binaryBreadthFirstSearch_driver.cpp
)

0 comments on commit 0a3b989

Please sign in to comment.