From: Paul Ramsey Date: Wed, 6 Sep 2017 19:57:24 +0000 (+0000) Subject: #3834 PostgreSQL 11 support started, will be more of these as dev continues, for... X-Git-Tag: 2.4.0rc1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f26534279b9c587a1b9e8971f01c9acd31b53cb;p=postgis #3834 PostgreSQL 11 support started, will be more of these as dev continues, for sure git-svn-id: http://svn.osgeo.org/postgis/trunk@15641 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c index 346cd49e5..a1481c051 100644 --- a/topology/postgis_topology.c +++ b/topology/postgis_topology.c @@ -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",