[Git][debian-gis-team/pgsql-ogr-fdw][upstream] New upstream version 1.0.12
Bas Couwenberg
gitlab at salsa.debian.org
Tue May 26 05:06:09 BST 2020
Bas Couwenberg pushed to branch upstream at Debian GIS Project / pgsql-ogr-fdw
Commits:
caaf4f8b by Bas Couwenberg at 2020-05-26T05:53:00+02:00
New upstream version 1.0.12
- - - - -
1 changed file:
- ogr_fdw.c
Changes:
=====================================
ogr_fdw.c
=====================================
@@ -1333,7 +1333,12 @@ ogrReadColumnData(OgrFdwState* state)
tbl = palloc0(sizeof(OgrFdwTable));
/* One column for each PgSQL foreign table column */
+#if PG_VERSION_NUM < 120000
rel = heap_open(state->foreigntableid, NoLock);
+#else
+ rel = table_open(state->foreigntableid, NoLock);
+#endif /* PG_VERSION_NUM */
+
tupdesc = rel->rd_att;
state->tupdesc = tupdesc;
tbl->ncols = tupdesc->natts;
@@ -1493,7 +1498,12 @@ ogrReadColumnData(OgrFdwState* state)
}
}
pfree(ogr_fields);
+#if PG_VERSION_NUM < 120000
heap_close(rel, NoLock);
+#else
+ table_close(rel, NoLock);
+#endif /* PG_VERSION_NUM */
+
return;
}
View it on GitLab: https://salsa.debian.org/debian-gis-team/pgsql-ogr-fdw/-/commit/caaf4f8be630c71e9679625c3d1ece87012b93a3
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pgsql-ogr-fdw/-/commit/caaf4f8be630c71e9679625c3d1ece87012b93a3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200526/c9d18fd8/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list