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

Fix SQL problem with some PostGre versions #2887

Merged
merged 1 commit into from
Oct 8, 2017

Conversation

sommerluk
Copy link
Collaborator

Fixes #2886 and I suppose addition parenthesis won’t make any harm on other PostGre versions or setups.

@matthijsmelissen matthijsmelissen merged commit a50c9f4 into gravitystorm:master Oct 8, 2017
@sommerluk sommerluk deleted the fix01 branch October 8, 2017 22:55
@kocio-pl
Copy link
Collaborator

kocio-pl commented Oct 9, 2017

I confirm that it still works on my setup.

@@ -2180,7 +2180,7 @@ Layer:
tags->'addr:unit' AS addr_unit,
way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels
FROM planet_osm_polygon
WHERE (("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR (tags->'addr:unit' IS NOT NULL))
WHERE (("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR ((tags->'addr:unit') IS NOT NULL))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be OR NOT tags ? 'addr:unit'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I do not fully understand the syntax, I would prefer if someone else could do this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants