After some proofs I found that the problem is about the treat expression: The Road class has no subtype.
So, I understand that this is no properly use of treat expression (as there are no subtype), but IMHO this should throw an exception instead of generate a SQL which is syntactically well formed but doesn't returns the expected result.
|