[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-130-g7ed2c1a17

git at osgeo.org git at osgeo.org
Fri Jan 7 23:24:01 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  7ed2c1a17ebba9826e01542205dd744141deb17b (commit)
      from  5c86e11523465f7a509087e3d2f2edab7894371d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7ed2c1a17ebba9826e01542205dd744141deb17b
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Jan 8 02:21:07 2022 -0500

    Make sure postgis_sfcgal_full_version() is always
    defined when postgis_sfcgal is installed.
    Handle case for SFCGAL < 1.4.0
    References https://trac.osgeo.org/postgis/ticket/5040 #5040
    References https://git.osgeo.org/gitea/postgis/postgis/pulls/61

diff --git a/sfcgal/sfcgal.sql.in b/sfcgal/sfcgal.sql.in
index 2573f3afc..3556e834c 100644
--- a/sfcgal/sfcgal.sql.in
+++ b/sfcgal/sfcgal.sql.in
@@ -27,11 +27,15 @@ CREATE OR REPLACE FUNCTION postgis_sfcgal_version() RETURNS text
         AS 'MODULE_PATHNAME'
         LANGUAGE 'c' IMMUTABLE;
 
-#if POSTGIS_SFCGAL_VERSION >= 10400
 -- Availability: 3.3.0
+#if POSTGIS_SFCGAL_VERSION >= 10400
 CREATE OR REPLACE FUNCTION postgis_sfcgal_full_version() RETURNS text
         AS 'MODULE_PATHNAME'
         LANGUAGE 'c' IMMUTABLE;
+#else
+CREATE OR REPLACE FUNCTION postgis_sfcgal_full_version() RETURNS text AS
+'SELECT @extschema at .postgis_sfcgal_version();'
+LANGUAGE 'sql' IMMUTABLE;
 #endif
 
 -- Availability: 3.0.0

-----------------------------------------------------------------------

Summary of changes:
 sfcgal/sfcgal.sql.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list