Skip to content

Commit

Permalink
Non-terrestrial geo-literals bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchez75 committed Jun 17, 2019
1 parent 259bcc5 commit 5d7b1b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsrc/Wi/rdfbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ bif_rdf_box (caddr_t * qst, caddr_t * err_ret, state_slot_t ** args)
if ((0 == ro_id) && !is_complete)
sqlr_new_error ("22023", "SR550", "Neither is_complete nor ro_id argument is set in call of rdf_box()");
box_dtp = DV_TYPE_OF (box);
/*
if (RDF_BOX_GEO_TYPE == type && DV_GEO != box_dtp && DV_LONG_INT != box_dtp)
sqlr_new_error ("42000", "RDFGE", "RDF box with a geometry RDF type and a non-geometry content");
switch (box_dtp)
Expand All @@ -487,6 +488,7 @@ bif_rdf_box (caddr_t * qst, caddr_t * err_ret, state_slot_t ** args)
}
if (type == RDF_BOX_GEO && box_dtp != DV_GEO)
sqlr_new_error ("22023", "SR559", "The RDF box of type geometry needs a spatial object as a value, not a value of type %s (%d)", dv_type_title (box_dtp), box_dtp);
*/
if (5 < BOX_ELEMENTS (args))
chksum = bif_string_arg (qst, args, 5, "rdf_box");
else
Expand Down

0 comments on commit 5d7b1b9

Please sign in to comment.