[postgis-tickets] r15850 - Can't load against PostgreSQL 11 head DatumGetJsonb renamed

Regina Obe lr at pcorp.us
Thu Sep 28 21:43:40 PDT 2017


Author: robe
Date: 2017-09-28 21:43:40 -0700 (Thu, 28 Sep 2017)
New Revision: 15850

Modified:
   trunk/postgis/mvt.c
Log:
Can't load against PostgreSQL 11 head DatumGetJsonb renamed
References #3867 for PostGIS 2.5

Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c	2017-09-28 06:50:30 UTC (rev 15849)
+++ trunk/postgis/mvt.c	2017-09-29 04:43:40 UTC (rev 15850)
@@ -587,7 +587,11 @@
 		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



More information about the postgis-tickets mailing list