]> granicus.if.org Git - postgis/commitdiff
Try and harmonize function parameter names for ST_AsGEoJSON(record)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 16 Aug 2019 21:26:05 +0000 (21:26 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 16 Aug 2019 21:26:05 +0000 (21:26 +0000)
References #4483

git-svn-id: http://svn.osgeo.org/postgis/trunk@17725 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis_before_upgrade.sql

index 7deb9a50abb5010aa0caf51950d97e4162a01d85..fc59058569e5e2b2cb601d473156db6506b0e282 100644 (file)
@@ -144,6 +144,14 @@ SELECT _postgis_drop_function_if_needed
        'geom1 geometry, geom2 geometry'
        );
 
+-- FUNCTION ST_AsGeoJson changed argument names
+-- (pretty_print => pretty_bool) in 3.0alpha4
+SELECT _postgis_drop_function_if_needed
+       (
+       '@extschema@',
+       'ST_AsGeoJson',
+       'r record, geom_column text, maxdecimaldigits int4, pretty_print bool'
+       );
 
 -- FUNCTION ST_LineCrossingDirection changed argument names in 3.0
 -- Was (geom1 geometry, geom2 geometry) and now (line1 geometry, line2 geometry)