aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cramer <davec@fastcrypt.com>2002-09-01 23:38:53 +0000
committerDave Cramer <davec@fastcrypt.com>2002-09-01 23:38:53 +0000
commit6a5168a7a1039f1e097124e11e3041c176d8809d (patch)
tree87d870595f26adbcde687a1e862efe07e900a6dd
parentdd1dcf2362778e409940794d16aed1c4c1139806 (diff)
downloadpostgresql-6a5168a7a1039f1e097124e11e3041c176d8809d.tar.gz
postgresql-6a5168a7a1039f1e097124e11e3041c176d8809d.zip
Changed to reflect the current reality, ie we do support updateable resultsets
-rw-r--r--src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
index bed162f9dbe..c435406aaef 100644
--- a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
+++ b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
@@ -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