Commit 39167fc6 authored by Paul Ramsey's avatar Paul Ramsey

#4006, cast json/jsonb to text in ST_GeomFromGeoJSON


git-svn-id: http://svn.osgeo.org/postgis/trunk@16374 b70326c6-7e19-0410-871a-916f4a2858ee
parent 26cf6593
Pipeline #17283746 failed with stage
in 5 minutes and 39 seconds
......@@ -4293,6 +4293,18 @@ CREATE OR REPLACE FUNCTION ST_GeomFromGeoJson(text)
AS 'MODULE_PATHNAME','geom_from_geojson'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-- Availability: 2.5.0
CREATE OR REPLACE FUNCTION ST_GeomFromGeoJson(json)
RETURNS geometry
AS 'SELECT @extschema@.ST_GeomFromGeoJson($1::text)'
LANGUAGE 'sql' IMMUTABLE STRICT _PARALLEL;
-- Availability: 2.5.0
CREATE OR REPLACE FUNCTION ST_GeomFromGeoJson(jsonb)
RETURNS geometry
AS 'SELECT @extschema@.ST_GeomFromGeoJson($1::text)'
LANGUAGE 'sql' IMMUTABLE STRICT _PARALLEL;
-- Availability: 2.0.0
CREATE OR REPLACE FUNCTION postgis_libjson_version()
RETURNS text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment