postgis.git / summary / log / commit / refs
commit 7e62e02ba017c560dfd7bff682cdcdc701fef7ef
Author: Regina Obe <lr@pcorp.us>
Date: Fri Jun 30 11:32:16 2023 +0000
PG17 is now master and
still doesn't have the new json api exposed
Flip the json api to PG18 for now
May need to flip back later.
References #5421 for PostGIS 3.4.0
postgis/lwgeom_out_geojson.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/postgis/lwgeom_out_geojson.c b/postgis/lwgeom_out_geojson.c
index b545913d4..31b097fd7 100644
--- a/postgis/lwgeom_out_geojson.c
+++ b/postgis/lwgeom_out_geojson.c
@@ -32,7 +32,7 @@
#include "lwgeom_log.h"
#include "liblwgeom.h"
-#if POSTGIS_PGSQL_VERSION < 170
+#if POSTGIS_PGSQL_VERSION < 180
typedef enum /* type categories for datum_to_json */
{
JSONTYPE_NULL, /* null, so we didn't bother to identify */
@@ -68,7 +68,7 @@ static void composite_to_json(Datum composite, StringInfo result,
static void datum_to_json(Datum val, bool is_null, StringInfo result,
JsonTypeCategory tcategory, Oid outfuncoid,
bool key_scalar);
-#if POSTGIS_PGSQL_VERSION < 170
+#if POSTGIS_PGSQL_VERSION < 180
static void json_categorize_type(Oid typoid,
JsonTypeCategory *tcategory,
Oid *outfuncoid);
@@ -244,7 +244,7 @@ composite_to_geojson(FunctionCallInfo fcinfo,
* output function OID. If the returned category is JSONTYPE_CAST, we
* return the OID of the type->JSON cast function instead.
*/
-#if POSTGIS_PGSQL_VERSION < 170
+#if POSTGIS_PGSQL_VERSION < 180
static void
json_categorize_type(Oid typoid,
JsonTypeCategory *tcategory,
[parent: bf64bc688653]