You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Andreas Korneliussen <An...@Sun.COM> on 2005/11/23 13:34:17 UTC

question about DatabaseMetaData

When doing scrollable updatable resultsets for Derby, we are considering 
letting

DatabaseMetaData.ownUpdatesAreVisible(ResultSet.TYPE_SCROLL_INSENSITIVE) 
return TRUE

(Retrieves whether for the given type of ResultSet object, the result 
set's own updates are visible.)

and

DatabaseMetaData.othersUpdatesAreVisible(ResultSet.TYPE_SCROLL_INSENSITIVE)
return FALSE

In Derby: updatable resultsets are built on positioned update.  Would it 
be ok to make updates made directly using positioned updates (on the 
same cursor as the resultset) also be visible from the resultset even if 
DatabaseMetaData.othersUpdatesAreVisible(..) returns FALSE ?

I think it would be correct, since we are updating the same cursor, 
however I am not sure since the JDBC specification talks about "others" 
as other transactions or other resultsets, it does not mention 
positioned updates on the same cursor.

-- Andreas