[postgis-tickets] r15709 - Light PgSQL 11 support so I can compile and test bug fixes

Paul Ramsey pramsey at cleverelephant.ca
Wed Sep 13 06:14:19 PDT 2017


Author: pramsey
Date: 2017-09-13 06:14:19 -0700 (Wed, 13 Sep 2017)
New Revision: 15709

Modified:
   branches/2.3/topology/postgis_topology.c
Log:
Light PgSQL 11 support so I can compile and test bug fixes


Modified: branches/2.3/topology/postgis_topology.c
===================================================================
--- branches/2.3/topology/postgis_topology.c	2017-09-13 13:09:40 UTC (rev 15708)
+++ branches/2.3/topology/postgis_topology.c	2017-09-13 13:14:19 UTC (rev 15709)
@@ -231,8 +231,12 @@
   }
 
   /* 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",
              name, topo->id, topo->srid, topo->precision);



More information about the postgis-tickets mailing list