[postgis-tickets] r15083 - Fix callback reading Edge data in presence of unexpected NULLs
Sandro Santilli
strk at kbt.io
Thu Sep 8 08:53:00 PDT 2016
Author: strk
Date: 2016-09-08 08:52:59 -0700 (Thu, 08 Sep 2016)
New Revision: 15083
Modified:
trunk/topology/postgis_topology.c
Log:
Fix callback reading Edge data in presence of unexpected NULLs
Modified: trunk/topology/postgis_topology.c
===================================================================
--- trunk/topology/postgis_topology.c 2016-09-07 18:36:05 UTC (rev 15082)
+++ trunk/topology/postgis_topology.c 2016-09-08 15:52:59 UTC (rev 15083)
@@ -627,7 +627,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;
@@ -638,7 +638,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;
@@ -649,7 +649,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;
@@ -660,7 +660,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;
@@ -671,7 +671,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