Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1120 fix ambigous column in function-aggregate_volumes_daily.sql #1121

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading