[libpostgresql-jdbc-java] 09/10: Implement ResultSet.updateArray by simply mapping it to updateObject.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:20:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL8_1_409
in repository libpostgresql-jdbc-java.

commit 4234b4eb9418cf11a1961fe172f42f72d26717c7
Author: Kris Jurka <books at ejurka.com>
Date:   Tue Apr 17 05:24:00 2007 +0000

    Implement ResultSet.updateArray by simply mapping it to updateObject.
---
 org/postgresql/jdbc3/AbstractJdbc3ResultSet.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java b/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
index c38ecfd..36eaf8d 100644
--- a/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
+++ b/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java,v 1.12 2005/02/15 08:56:26 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java,v 1.13 2005/06/08 01:44:02 oliver Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -192,7 +192,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra
      */
     public void updateArray(int columnIndex, java.sql.Array x) throws SQLException
     {
-        throw org.postgresql.Driver.notImplemented(this.getClass(), "updateArray(int,Array)");
+        updateObject(columnIndex, x);
     }
 
     /**
@@ -209,7 +209,7 @@ public abstract class AbstractJdbc3ResultSet extends org.postgresql.jdbc2.Abstra
      */
     public void updateArray(String columnName, java.sql.Array x) throws SQLException
     {
-        throw org.postgresql.Driver.notImplemented(this.getClass(), "updateArray(String,Array)");
+        updateArray(findColumn(columnName), x);
     }
 
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list