From b9d3a789e6788028842ae75dac78db6c73745579 Mon Sep 17 00:00:00 2001 From: Jean-Pascal Milcent <51449363+jpm-cbna@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:36:53 +0200 Subject: [PATCH] fix (atlas_synthese.sql): avoid the error geometry does not exist With pg_restore the search_path is not set to public. So, the error "geometry does not exist" is raised. --- data/gn2/atlas_synthese.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/gn2/atlas_synthese.sql b/data/gn2/atlas_synthese.sql index 446495ee..e3fdef82 100644 --- a/data/gn2/atlas_synthese.sql +++ b/data/gn2/atlas_synthese.sql @@ -31,7 +31,7 @@ CREATE OR REPLACE FUNCTION atlas.get_blurring_centroid_geom_by_code(code CHARACT IMMUTABLE AS $function$ -- Function which return the centroid for a sensitivity or diffusion_level code and a synthese id - DECLARE centroid geometry; + DECLARE centroid public.geometry; BEGIN SELECT INTO centroid csa.centroid_4326