Update statements on Virtual Routing tables created with road_name_column set to null are a NOOP. Following the example on [https://www.gaia-gis.it/fossil/libspatialite/wiki?name=VirtualRouting] but creating the table with null instead of 'toponym' as road_name_column results in a table where UPDATE statements don't do anything.
Reproduction
- Use the data set from https://www.gaia-gis.it/fossil/libspatialite/wiki?name=VirtualRouting
- Create the Virtual Routing table by
SELECT CreateRouting('byfoot_data', 'byfoot', 'roads_vw', 'node_from', 'node_to', 'geom', NULL, NULL, 1, 1);
- Try to change a setting on it like its described on the
Defining a custom delimiter section by
UPDATE byfoot SET Delimiter = '*';
SELECT Delimiter FROM byfoot;
The Delimiter is not actually changed.
Notes
vroute_update checks for argc == 18 before performing an update and silently does nothing if the condition is not met. When the Virtual Routing table is created, on vroute_create, the number of columns is increased by 1 when col_name is provided. So, argc is 17 when the Virtual Routing table is created without a road_name_column.