Skip to content

Commit

Permalink
Merge pull request #162 from HSLdevcom/fix_timed_stop_departure_function
Browse files Browse the repository at this point in the history
Fix route_departures_for_timed_stops function subquery
  • Loading branch information
e-halinen authored Jun 18, 2024
2 parents 63d8e03 + 3c1d301 commit fa18aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup/createFunctions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ $$
AND NOT (departure.date_begin < route.date_begin AND departure.date_end < route.date_begin)
AND NOT (departure.date_begin > route.date_end AND departure.date_end > route.date_end)
AND NOT (departure.date_begin < user_date_begin AND departure.date_end < user_date_begin)
AND NOT (departure.date_begin > user_date_end AND departure.date_end > user_date_end))
AND NOT (departure.date_begin > user_date_end AND departure.date_end > user_date_end)) departures
WHERE ((timing_stop_type = 1) OR (timing_stop_type = 2) OR (stop_index = 1))
GROUP BY route_id, stop_id, direction, day_type, departure_id, hours, minutes, is_next_day, date_begin, date_end, timing_stop_type, stop_index;
$$ language sql stable;
Expand Down

0 comments on commit fa18aa4

Please sign in to comment.