Changeset: b2faed6ca211 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b2faed6ca211 Modified Files: geom/monetdb5/geom_atoms.c Branch: geo-update Log Message:
Fixes bug where update table with st_setsrid() was not working The wkbCMP function needs to take into account the srid of the wkb otherwise the comparison is not proper. in case of same data but different srid wkbCMP return 0 so the update call is not actually updating anything. diffs (14 lines): diff --git a/geom/monetdb5/geom_atoms.c b/geom/monetdb5/geom_atoms.c --- a/geom/monetdb5/geom_atoms.c +++ b/geom/monetdb5/geom_atoms.c @@ -113,6 +113,10 @@ int wkbCOMP(const void *L, const void *R) { const wkb *l = L, *r = R; + + if (l->srid != r->srid) + return -1; + int len = l->len; if (len != r->len) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org