]> granicus.if.org Git - postgis/commitdiff
#3834 PostgreSQL 11 support started, will be more of these as dev continues, for...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 6 Sep 2017 19:57:24 +0000 (19:57 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 6 Sep 2017 19:57:24 +0000 (19:57 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15641 b70326c6-7e19-0410-871a-916f4a2858ee

topology/postgis_topology.c

index 346cd49e56818485e4dd143240d8f87ffdb11f72..a1481c0511b5fb27691fc2cbdde4c3da5173c339 100644 (file)
@@ -245,7 +245,11 @@ cb_loadTopologyByName(const LWT_BE_DATA* be, const char *name)
   }
 
   /* 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",