Estoy intentando hacer una selección SQL pero recibo un error. Mi declaración:
SELECT *
FROM network
JOIN
(SELECT * FROM shortest_path('
SELECT gid AS id,
start_id::int4 AS source,
end_id::int4 AS target,
"length"::float8 AS cost
FROM network',
10,
12,
false,
false)) AS route
ON
network.gid = route.edge_id;
El error:
ERROR: Start vertex was not found.
********** Error **********
ERROR: Start vertex was not found.
SQL state: XX000