From 1917cd1d62851fd3d355c3de0689ec3fc3b3d753 Mon Sep 17 00:00:00 2001 From: CynthiaBorotPNV <31919455+CynthiaBorotPNV@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:00:53 +0200 Subject: [PATCH] Update sensitivity.sql adding "public" schema reference Without the public key I meet errors using fdw (foreign data wrapper) when I want to insert data in gn_synthese.synthese table --- backend/geonature/migrations/data/core/sensitivity.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/geonature/migrations/data/core/sensitivity.sql b/backend/geonature/migrations/data/core/sensitivity.sql index 7bbacd3fbc..e9e7e3ca86 100644 --- a/backend/geonature/migrations/data/core/sensitivity.sql +++ b/backend/geonature/migrations/data/core/sensitivity.sql @@ -231,7 +231,7 @@ BEGIN LEFT OUTER JOIN ref_geo.l_areas l USING(id_area) ) s WHERE my_cd_ref = s.cd_ref - AND (st_intersects(my_geom, s.geom) OR s.geom IS NULL) -- paramètre géographique + AND (public.st_intersects(my_geom, s.geom) OR s.geom IS NULL) -- paramètre géographique AND (-- paramètre période (to_char(my_date_obs, 'MMDD') between to_char(s.date_min, 'MMDD') and to_char(s.date_max, 'MMDD') ) )