Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6a5168a

Browse files
author
Dave Cramer
committed
Changed to reflect the current reality, ie we do support updateable resultsets
1 parent dd1dcf2 commit 6a5168a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQ
4949
if (type == java.sql.ResultSet.TYPE_SCROLL_SENSITIVE)
5050
return false;
5151

52-
// We don't yet support Updateable ResultSets
52+
// We do support Updateable ResultSets
5353
if (concurrency == java.sql.ResultSet.CONCUR_UPDATABLE)
54-
return false;
54+
return true;
5555

5656
// Everything else we do
5757
return true;
@@ -61,17 +61,18 @@ public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQ
6161
/* lots of unsupported stuff... */
6262
public boolean ownUpdatesAreVisible(int type) throws SQLException
6363
{
64-
return false;
64+
return true;
6565
}
6666

6767
public boolean ownDeletesAreVisible(int type) throws SQLException
6868
{
69-
return false;
69+
return true;
7070
}
7171

7272
public boolean ownInsertsAreVisible(int type) throws SQLException
7373
{
74-
return false;
74+
// indicates that
75+
return true;
7576
}
7677

7778
public boolean othersUpdatesAreVisible(int type) throws SQLException

0 commit comments

Comments
 (0)