SDO_RELATE With Mask=Contains Returns Wrong Results If Where Clause = TRUE
(Doc ID 1584489.1)
Last updated on FEBRUARY 08, 2017
Applies to:Oracle Spatial and Graph - Version 220.127.116.11 to 18.104.22.168 [Release 11.2 to 12.1]
Information in this document applies to any platform.
While the SQL statement work correctly on Oracle 22.214.171.124 but, after upgrade to 126.96.36.199 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)
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document