Skip to content

Commit 50ca961

Browse files
committed
Merge branch 'sankepallyrohithreddy-develop' into cmake-improve-2.2
2 parents 93733e6 + f555e89 commit 50ca961

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/trsp/src/trsp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ static int compute_trsp(
312312

313313
PGR_DBG("start turn_restrict_shortest_path\n");
314314

315+
if (start_id == end_id) {
316+
PGR_DBG("Starting vertex and Ending Vertex are equal");
317+
*path = NULL;
318+
return 0;
319+
}
320+
315321
SPIcode = SPI_connect();
316322
if (SPIcode != SPI_OK_CONNECT) {
317323
elog(ERROR, "turn_restrict_shortest_path: couldn't open a connection to SPI");

0 commit comments

Comments
 (0)