]> granicus.if.org Git - postgresql/commitdiff
Changed to reflect the current reality, ie we do support updateable resultsets
authorDave Cramer <davec@fastcrypt.com>
Sun, 1 Sep 2002 23:38:53 +0000 (23:38 +0000)
committerDave Cramer <davec@fastcrypt.com>
Sun, 1 Sep 2002 23:38:53 +0000 (23:38 +0000)
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java

index bed162f9dbe9d323d3a3a43f7e777a4273a36060..c435406aaef0873870035167b8ac2a9dae7e08a9 100644 (file)
@@ -49,9 +49,9 @@ public abstract class AbstractJdbc2DatabaseMetaData extends org.postgresql.jdbc1
                if (type == java.sql.ResultSet.TYPE_SCROLL_SENSITIVE)
                        return false;
 
-               // We don't yet support Updateable ResultSets
+               // We do support Updateable ResultSets
                if (concurrency == java.sql.ResultSet.CONCUR_UPDATABLE)
-                       return false;
+                       return true;
 
                // Everything else we do
                return true;
@@ -61,17 +61,18 @@ public abstract class AbstractJdbc2DatabaseMetaData extends org.postgresql.jdbc1
        /* lots of unsupported stuff... */
        public boolean ownUpdatesAreVisible(int type) throws SQLException
        {
-               return false;
+          return true;
        }
 
        public boolean ownDeletesAreVisible(int type) throws SQLException
        {
-               return false;
+          return true;
        }
 
        public boolean ownInsertsAreVisible(int type) throws SQLException
        {
-               return false;
+          // indicates that
+          return true;
        }
 
        public boolean othersUpdatesAreVisible(int type) throws SQLException