View Ticket
Not logged in
Ticket Hash: 77dad2addef1aeae431c5ce889b7b6bb958b2424
Title: Update statements are ignored for Virtual Routing tables when created with road_name_column set to null
Status: Open Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution:
Last Modified: 2026-11-17 20:09:48
Version Found In: 5.1.0
User Comments:
anonymous added on 2026-11-17 20:09:48:

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

  1. Use the data set from https://www.gaia-gis.it/fossil/libspatialite/wiki?name=VirtualRouting
  2. Create the Virtual Routing table by SELECT CreateRouting('byfoot_data', 'byfoot', 'roads_vw', 'node_from', 'node_to', 'geom', NULL, NULL, 1, 1);
  3. 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.