Skip to content

Commit

Permalink
#1120 fix ambigous column in function-aggregate_volumes_daily.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwol authored Dec 19, 2024
1 parent 79009ab commit aab8b84
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE OR REPLACE FUNCTION miovision_api.aggregate_volumes_daily(
intersections integer [] DEFAULT ARRAY[]::integer []
)
RETURNS void
LANGUAGE 'plpgsql'
LANGUAGE plpgsql

COST 100
VOLATILE
Expand Down Expand Up @@ -86,11 +86,11 @@ BEGIN
AND v.intersection_uid = ANY(target_intersections)
--exclude bike exits
AND NOT (
classification_uid = 10
AND movement_uid = 8
v.classification_uid = 10
AND v.movement_uid = 8
)
--exclude bikes in crosswalk
AND NOT (classification_uid = 7)
AND NOT (v.classification_uid = 7)
GROUP BY
v.intersection_uid,
v.classification_uid,
Expand Down Expand Up @@ -125,4 +125,4 @@ GRANT EXECUTE ON FUNCTION miovision_api.aggregate_volumes_daily(date, date, inte
TO miovision_api_bot;

REVOKE ALL ON FUNCTION miovision_api.aggregate_volumes_daily(date, date, integer [])
FROM public;
FROM public;

0 comments on commit aab8b84

Please sign in to comment.