Skip to content

Commit

Permalink
fix(sql): urbain 0 when null cast to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Sep 21, 2023
1 parent a6888bd commit faa9793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/bdtopo_v3.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion sql/bduni_convert.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit faa9793

Please sign in to comment.