[postgis-tickets] r15641 - #3834 PostgreSQL 11 support started, will be more of these as dev continues, for sure

Paul Ramsey pramsey at cleverelephant.ca
Wed Sep 6 12:57:24 PDT 2017


Author: pramsey
Date: 2017-09-06 12:57:24 -0700 (Wed, 06 Sep 2017)
New Revision: 15641

Modified:
   trunk/topology/postgis_topology.c
Log:
#3834 PostgreSQL 11 support started, will be more of these as dev continues, for sure


Modified: trunk/topology/postgis_topology.c
===================================================================
--- trunk/topology/postgis_topology.c	2017-09-06 18:29:41 UTC (rev 15640)
+++ trunk/topology/postgis_topology.c	2017-09-06 19:57:24 UTC (rev 15641)
@@ -245,7 +245,11 @@
   }
 
   /* we're dynamically querying geometry type here */
+#if POSTGIS_PGSQL_VERSION < 110
   topo->geometryOID = SPI_tuptable->tupdesc->attrs[3]->atttypid;
+#else
+  topo->geometryOID = SPI_tuptable->tupdesc->attrs[3].atttypid;
+#endif
 
   POSTGIS_DEBUGF(1, "cb_loadTopologyByName: topo '%s' has "
                     "id %d, srid %d, precision %g",



More information about the postgis-tickets mailing list