[postgis-tickets] r15084 - Fix callback reading Edge data in presence of unexpected NULLs
Sandro Santilli
strk at kbt.io
Thu Sep 8 08:53:23 PDT 2016
Author: strk
Date: 2016-09-08 08:53:23 -0700 (Thu, 08 Sep 2016)
New Revision: 15084
Modified:
branches/2.2/topology/postgis_topology.c
Log:
Fix callback reading Edge data in presence of unexpected NULLs
Modified: branches/2.2/topology/postgis_topology.c
===================================================================
--- branches/2.2/topology/postgis_topology.c 2016-09-08 15:52:59 UTC (rev 15083)
+++ branches/2.2/topology/postgis_topology.c 2016-09-08 15:53:23 UTC (rev 15084)
@@ -612,7 +612,7 @@
dat = SPI_getbinval(row, rowdesc, ++colno, &isnull);
if ( isnull ) {
lwpgwarning("Found edge with NULL end_node");
- edge->start_node = -1;
+ edge->end_node = -1;
}
val = DatumGetInt32(dat);
edge->end_node = val;
@@ -623,7 +623,7 @@
dat = SPI_getbinval(row, rowdesc, ++colno, &isnull);
if ( isnull ) {
lwpgwarning("Found edge with NULL face_left");
- edge->start_node = -1;
+ edge->face_left = -1;
}
val = DatumGetInt32(dat);
edge->face_left = val;
@@ -634,7 +634,7 @@
dat = SPI_getbinval(row, rowdesc, ++colno, &isnull);
if ( isnull ) {
lwpgwarning("Found edge with NULL face_right");
- edge->start_node = -1;
+ edge->face_right = -1;
}
val = DatumGetInt32(dat);
edge->face_right = val;
@@ -645,7 +645,7 @@
dat = SPI_getbinval(row, rowdesc, ++colno, &isnull);
if ( isnull ) {
lwpgwarning("Found edge with NULL next_left");
- edge->start_node = -1;
+ edge->next_left = -1;
}
val = DatumGetInt32(dat);
edge->next_left = val;
@@ -656,7 +656,7 @@
dat = SPI_getbinval(row, rowdesc, ++colno, &isnull);
if ( isnull ) {
lwpgwarning("Found edge with NULL next_right");
- edge->start_node = -1;
+ edge->next_right = -1;
}
val = DatumGetInt32(dat);
edge->next_right = val;
More information about the postgis-tickets
mailing list