From bd793f72e5cb0fa42f8128227e7ce0869e26d556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Mon, 23 Nov 2020 16:51:04 +0100 Subject: [PATCH] scripts-available/ --- scripts-available/CDB_CartodbfyTable.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index c54baf2..0f838ee 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -636,8 +636,7 @@ $$ LANGUAGE 'plpgsql' STABLE PARALLEL SAFE; DO $$ BEGIN - SET search_path TO @extschema@; - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = '_cdb_has_usable_geom_record') THEN + IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = '_cdb_has_usable_geom_record' AND typnamespace = '@extschema@'::regnamespace) THEN CREATE TYPE @extschema@._cdb_has_usable_geom_record AS (has_usable_geoms boolean, text_geom_column boolean,