Removed useless NULLIF calls (#1214)

`NULLIF(wikipedia, '') IS NOT NULL` replaced by `wikipedia <> ''`
https://stackoverflow.com/questions/23766084/best-way-to-check-for-empty-or-null-value
This commit is contained in:
Jaroslav Hanslík
2021-09-20 11:19:24 +02:00
committed by GitHub
parent e8a3bc18c5
commit d49f524edd
4 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ SELECT uic_ref,
count(*) AS count,
CASE WHEN count(*) > 2 THEN ST_Centroid(ST_UNION(geometry)) END AS centroid
FROM osm_poi_point
WHERE nullif(uic_ref, '') IS NOT NULL
WHERE uic_ref <> ''
AND subclass IN ('bus_stop', 'bus_station', 'tram_stop', 'subway')
GROUP BY uic_ref
HAVING count(*) > 1