changeset 2938:7794d718ffe2

6983452: SyncProvider issue for JoinRowSet implementation Reviewed-by: darcy, ohair
author lancea
date Fri, 17 Sep 2010 13:23:33 -0400
parents 441e86ab3233
children 1cb444a3d5cd
files src/share/classes/com/sun/rowset/CachedRowSetImpl.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Thu Sep 16 13:25:20 2010 +0200
+++ b/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Fri Sep 17 13:23:33 2010 -0400
@@ -889,7 +889,12 @@
                     success = false;
                 } else {
                     tWriter = (TransactionalWriter)rowSetWriter;
-                    ((CachedRowSetWriter)tWriter).commit(this, updateOnInsert);
+                    if (tWriter instanceof CachedRowSetWriter) {
+                        ((CachedRowSetWriter)tWriter).commit(this, updateOnInsert);
+                    } else {
+                        tWriter.commit();
+                    }
+
                     success = true;
                 }
             }