Ensure empty name is NULL in waterway

pull/63/head
Lukas Martinelli 2016-11-29 13:33:33 +00:00
rodzic 5a679e1a9b
commit 6f68ab999d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -55,7 +55,7 @@ CREATE OR REPLACE VIEW waterway_z14 AS (
CREATE OR REPLACE FUNCTION layer_waterway(bbox geometry, zoom_level int)
RETURNS TABLE(geometry geometry, class text, name text) AS $$
SELECT geometry, class, name FROM (
SELECT geometry, class, NULLIF(name, '') AS name FROM (
-- etldoc: waterway_z3 -> layer_waterway:z3
SELECT * FROM waterway_z3 WHERE zoom_level = 3
UNION ALL