Merge pull request #3950 from jayaddison/fixup/sql-debug-output-escaping

Fixup: add single-quote escaping within debug message
This commit is contained in:
Sarah Hoffmann
2026-01-28 20:30:11 +01:00
committed by GitHub

View File

@@ -1240,7 +1240,7 @@ BEGIN
LIMIT 1 LIMIT 1
LOOP LOOP
IF location.osm_id = NEW.osm_id THEN IF location.osm_id = NEW.osm_id THEN
{% if debug %}RAISE WARNING 'Updating names for country '%' with: %', NEW.country_code, NEW.name;{% endif %} {% if debug %}RAISE WARNING 'Updating names for country ''%'' with: %', NEW.country_code, NEW.name;{% endif %}
UPDATE country_name SET derived_name = NEW.name WHERE country_code = NEW.country_code; UPDATE country_name SET derived_name = NEW.name WHERE country_code = NEW.country_code;
END IF; END IF;
END LOOP; END LOOP;