Skip to content

Commit

Permalink
Export CSV : priorité aux CPs des adresses (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdct committed Mar 28, 2021
1 parent 25a501d commit a0a797e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bano/sql/export_csv_dept.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ AS
'"',CHR(39)),
', ',' '),
',',' ') AS voie,
COALESCE(cp.postal_code, lp.cp, ca.code_postal) AS code_post,
COALESCE(o.code_postal,c.code_postal,cp.postal_code, lp.cp, ca.code_postal) AS code_post,
COALESCE(cn.libelle,initcap(ca.nom_com)) AS ville,
CASE
WHEN u.num=o.num THEN 'OSM'
Expand Down

0 comments on commit a0a797e

Please sign in to comment.