From faa97930cfcef8ec26950b93b4f9d78eb170c77c Mon Sep 17 00:00:00 2001 From: "amaury.zarzelli" Date: Thu, 21 Sep 2023 09:01:55 +0200 Subject: [PATCH] fix(sql): urbain 0 when null cast to boolean --- sql/bdtopo_v3.3.sql | 2 +- sql/bduni_convert.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/bdtopo_v3.3.sql b/sql/bdtopo_v3.3.sql index dfeb7c7..e42af3b 100644 --- a/sql/bdtopo_v3.3.sql +++ b/sql/bdtopo_v3.3.sql @@ -191,7 +191,7 @@ CREATE TEMP TABLE IF NOT EXISTS bduni_troncon AS t.bande_cyclable as bande_cyclable, t.reserve_aux_bus as reserve_aux_bus, (CASE - WHEN t.urbain IS NULL THEN 0 + WHEN t.urbain IS NULL THEN 0::boolean ELSE t.urbain END) as urbain, t.acces_pieton as acces_pieton, diff --git a/sql/bduni_convert.sql b/sql/bduni_convert.sql index 0751a15..d20fd01 100644 --- a/sql/bduni_convert.sql +++ b/sql/bduni_convert.sql @@ -190,7 +190,7 @@ CREATE TEMP TABLE IF NOT EXISTS bduni_troncon AS t.bande_cyclable as bande_cyclable, t.reserve_aux_bus as reserve_aux_bus, (CASE - WHEN t.urbain IS NULL THEN 0 + WHEN t.urbain IS NULL THEN 0::boolean ELSE t.urbain END) as urbain, t.acces_pieton as acces_pieton,