master
ifiguero 2024-07-31 02:59:50 -04:00
parent a4472baa84
commit e540991ac0
1 changed files with 129 additions and 129 deletions

View File

@ -103,13 +103,13 @@ if v_error = '' THEN
end end
WHERE trip_headsign LIKE '%-%-%'; WHERE trip_headsign LIKE '%-%-%';
update z_routes -- update z_routes
set route_long_name = replace (route_long_name,replace( -- set route_long_name = replace (route_long_name,replace(
(select distinct trip_headsign from z_trips where route_id =z_routes.route_id and trip_headsign like '%~%' ),'~','-' -- (select distinct trip_headsign from z_trips where route_id =z_routes.route_id and trip_headsign like '%~%' ),'~','-'
), -- ),
(select distinct trip_headsign from z_trips where route_id =z_routes.route_id and trip_headsign like '%~%' ) -- (select distinct trip_headsign from z_trips where route_id =z_routes.route_id and trip_headsign like '%~%' )
) -- )
WHERE route_long_name LIKE '%-%-%-%-%'; -- WHERE route_long_name LIKE '%-%-%-%-%';