SDO_RELATE With Mask=Contains Returns Wrong Results If Where Clause = TRUE
Last updated on FEBRUARY 08, 2017
Applies to:Oracle Spatial and Graph - Version 126.96.36.199 to 188.8.131.52 [Release 11.2 to 12.1]
Information in this document applies to any platform.
While the SQL statement work correctly on Oracle 184.108.40.206 but, after upgrade to 220.127.116.11 and test the same query it returns no rows.
The SQL statement have sdo_relate('mask=CONTAINS') in the select list and the where clause have a comaprison to value "TRUE" .
FROM (SELECT F.ID AS FID, SDO_RELATE(T.POLYGON, F.POLYGON, 'mask=CONTAINS')
FROM GEOMTABLE1 T, GEOMTABLE2 F
WHERE T.ID in (1,2) and f.id=5)
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms