Skip to content

Commit

Permalink
properly import gauges with SQL syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Aug 4, 2024
1 parent c95290b commit b0aed3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import/openrailwaymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ function osm2pgsql.process_way(object)
if gauge_tag then
for gauge in string.gmatch(gauge_tag, '[^;]+') do
if gauge then
table.insert(gauges, gauge)
-- Raw SQL array syntax
table.insert(gauges, "\"" .. gauge:gsub("\"", "\\\"") .. "\"")
end
end
end
Expand Down

0 comments on commit b0aed3e

Please sign in to comment.