Can't load against PostgreSQL 11 head DatumGetJsonb renamed
authorRegina Obe <lr@pcorp.us>
Fri, 29 Sep 2017 04:43:40 +0000 (04:43 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 29 Sep 2017 04:43:40 +0000 (04:43 +0000)
References #3867 for PostGIS 2.5

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

postgis/mvt.c

index 0924e4ab1e2e0ce5633fc3340994f6ca4845dc3e..6dac6f10c2672e299431c77b5aaba6b30a8174c9 100644 (file)
@@ -587,7 +587,11 @@ static void parse_values(struct mvt_agg_context *ctx)
                if (k == -1 && typoid != JSONBOID)
                        elog(ERROR, "parse_values: unexpectedly could not find parsed key name '%s'", key);
                if (typoid == JSONBOID) {
+#if POSTGIS_PGSQL_VERSION < 110
                        tags = parse_jsonb(ctx, DatumGetJsonb(datum), tags);
+#else
+                       tags = parse_jsonb(ctx, DatumGetJsonbP(datum), tags);
+#endif
                        continue;
                }
 #else