[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-696-g83faf96fc

git at osgeo.org git at osgeo.org
Tue Apr 5 17:28:11 PDT 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  83faf96fc252504ada28bd07ba86c4ba6b31aa5a (commit)
      from  9b582b348a89dac43a5fe7c36c59b1973c32c4bf (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 83faf96fc252504ada28bd07ba86c4ba6b31aa5a
Author: Regina Obe <lr at pcorp.us>
Date:   Tue Apr 5 20:28:05 2022 -0400

    Fix compile against PG15. json and jsonb are now keywords so must be quoted as function names. References #5123 for PostGIS 3.3

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index c0a206059..115155764 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -4866,23 +4866,23 @@ CREATE OR REPLACE FUNCTION ST_AsGeoJson(r record, geom_column text DEFAULT '', m
 	_COST_MEDIUM;
 
 -- Availability: 3.0.0
-CREATE OR REPLACE FUNCTION json(geometry)
+CREATE OR REPLACE FUNCTION "json"(geometry)
 	RETURNS json
 	AS 'MODULE_PATHNAME','geometry_to_json'
 	LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
 	_COST_MEDIUM;
 
 -- Availability: 3.0.0
-CREATE OR REPLACE FUNCTION jsonb(geometry)
+CREATE OR REPLACE FUNCTION "jsonb"(geometry)
 	RETURNS jsonb
 	AS 'MODULE_PATHNAME','geometry_to_jsonb'
 	LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
 	_COST_MEDIUM;
 
 -- Availability: 3.0.0
-CREATE CAST (geometry AS json) WITH FUNCTION json(geometry);
+CREATE CAST (geometry AS json) WITH FUNCTION "json"(geometry);
 -- Availability: 3.0.0
-CREATE CAST (geometry AS jsonb) WITH FUNCTION jsonb(geometry);
+CREATE CAST (geometry AS jsonb) WITH FUNCTION "jsonb"(geometry);
 
 -----------------------------------------------------------------------
 -- Mapbox Vector Tile OUTPUT

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

Summary of changes:
 postgis/postgis.sql.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list