From a0a797ed4e8cecabb681bff2978728bfe4edb31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20de=20Ch=C3=A2teau-Thierry?= Date: Sun, 28 Mar 2021 21:52:34 +0000 Subject: [PATCH] =?UTF-8?q?Export=20CSV=20:=20priorit=C3=A9=20aux=20CPs=20?= =?UTF-8?q?des=20adresses=20(#222)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bano/sql/export_csv_dept.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bano/sql/export_csv_dept.sql b/bano/sql/export_csv_dept.sql index 408327b..ec153a8 100644 --- a/bano/sql/export_csv_dept.sql +++ b/bano/sql/export_csv_dept.sql @@ -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'