postgresql-jdbc.git / summary / log / commit / refs
commit d8f5223dff05cedddcaad34c0db8068f54f56866
Author: Kris Jurka <books@ejurka.com>
Date: Wed Jun 16 18:29:44 2004 +0000
Don't throw an Exception in locatorsUpdateCopy() even though the
ability to update LOBs is unimplemented. The 1.5 JDK's CachedRowSet
implementation calls this method regardless of whether large objects
are used or not.
From report by Kevin MacClay.
org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java b/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
index 7ebdf382..7e72b25e 100644
--- a/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
+++ b/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
@@ -336,7 +336,13 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/
public boolean locatorsUpdateCopy() throws SQLException
{
- throw org.postgresql.Driver.notImplemented();
+ /*
+ * Currently LOB's aren't updateable at all, so it doesn't
+ * matter what we return. We don't throw the notImplemented
+ * Exception because the 1.5 JDK's CachedRowSet calls this
+ * method regardless of wether large objects are used.
+ */
+ return true;
}
/**
[parent: cd66b55e77d1]