Editing a join query change in recent ODAC?
Posted: Fri 10 May 2013 11:18
It looks like there has been a change in the way that the editing SQL is generated. Previously doing a query like:
Would correctly figure out that empno is editable and that dname is read only (as it's in the dept table which is not the "updatetable".) Trying to lock or edit this query fails as it puts dname into the lock, refresh and update queries as if it belonged to emp.
Interestingly enough, qualifying the columns with their aliases (i.e. e.empno, d.dname) fixes the issue, as well as setting "FieldsOrigin" to true. However neither should be required in this case (and wasn't required in previous ODAC versions.)
Any thoughts?
-Mark Ford
Code: Select all
select empno, dname
from emp e, dept d
where
e.deptno = d.deptno;
Interestingly enough, qualifying the columns with their aliases (i.e. e.empno, d.dname) fixes the issue, as well as setting "FieldsOrigin" to true. However neither should be required in this case (and wasn't required in previous ODAC versions.)
Any thoughts?
-Mark Ford