Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
See the following example:
SELECT t1.str1, t1.str2, t2.abc FROM table1 t1, table2 t2 WHERE t1.id = t2.id and substr(t1.str1, 1, 3) = substr(t1.str2, 1,3);
Currently, the expression substr(t1.str1, 1, 3) = substr(t1.str2, 1,3); is also addressed as a join condition. Since it includes columns of the same table, we shouldn't do it.