You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When 'session.Refresh(A)' is called it produces an SQL-string that looks like this: SELECT a.SID as ..., ..., b1s.FK_A_SID as ..., b1s.SID as ..., ... FROM A a LEFT OUTER JOIN BBASE b1s ON a.SID=b1s.FK_A_SID AND b1s.TYPE=0 WHERE a.SID=?
This SQL-string leads to an error. When I manually switch the 'AND' and 'WHERE' statements then it works: SELECT a.SID as ..., ..., b1s.FK_A_SID as ..., b1s.SID as ..., ... FROM A a LEFT OUTER JOIN BBASE b1s ON a.SID=b1s.FK_A_SID WHERE a.SID=? AND b1s.TYPE=0
Remark: This happens only for the first bag in 'A's mapping-file.
Mark Junker added a comment - 21/Oct/11 8:17 PM
Using additional conditions in the JOIN .. ON .. clause is common practice in modern RDBMS and the SQL would execute just fine in those environments. I will take a look at this problem when I get to the point where I need sublcasses too (which may take some months).
The text was updated successfully, but these errors were encountered:
Martin Gämperle created issue - 20/Sep/10 1:28 PM
Mark Junker added a comment - 21/Oct/11 8:17 PM
The text was updated successfully, but these errors were encountered: