From 6f68ab999dd9efde57eccbb34f687bb543bda252 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Tue, 29 Nov 2016 13:33:33 +0000 Subject: [PATCH] Ensure empty name is NULL in waterway --- layers/waterway/waterway.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/waterway/waterway.sql b/layers/waterway/waterway.sql index 293b0de0..a5439dbf 100644 --- a/layers/waterway/waterway.sql +++ b/layers/waterway/waterway.sql @@ -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