Page 1 of 1

ORA_ROWSCN pseudo column update error

Posted: Tue 09 Sep 2008 19:14
by huanghexd
After automatically generting the .edmx file from an Oracle 10g database, I manually add the following line:



into the store schema section and changed the conceptual schema and the c-s mapping accordingly.

The reading of ORA_ROWSCN is just fine. But when SaveChanges() was called, an exception occured: InternalExcpetion "{"Unknown column 'ORA_ROWSCN'"}".

Any suggestion? Thanks.

Posted: Thu 11 Sep 2008 16:24
by Shalex
It is impossible to support all types of pseudo-columns, but ORA_ROWSCN support will be already available in the next build.

Posted: Thu 11 Sep 2008 18:34
by huanghexd
Thank you, Shalex, for your reply. Is there any chance to give the release date of the next build?

Posted: Fri 12 Sep 2008 07:28
by Shalex
We can't provide you with the exact date now. But the next build will be available during 2 weeks for sure.

Posted: Fri 12 Sep 2008 12:42
by huanghexd
That's great. Thanks.

Posted: Tue 28 Oct 2008 19:44
by huanghexd
The problem was only partially solved by dotConnect 5.0.beta:

The SaveChanges() works fine but the new value of ORA_ROWSCN does not fetch back correctly -- the new value is set to be null.

The reason I found is: the new value of ORA_ROWSCN is availabe only after the change is committed. But in the generated sql statement by dotConnet, the ORA_ROWSCN is returned back before the commit. So we get back a null value.

Any comment? Thanks.

Posted: Fri 31 Oct 2008 16:35
by Shalex
When you refreshing data, the cycle of update-refresh is executing for every record. Transaction is commited only after refreshing all the tabels. We cannot provide committing transaction before every returning of updatable columns.

Posted: Tue 04 Nov 2008 22:47
by huanghexd
That makes sense. So ORA_ROWSCN is not a REAL updatable column, even if we set the StoreGeneratedPattern="Computed" attribute.