[libpostgresql-jdbc-java] 11/14: ResultSet.updateNClob(String, Reader) goes into an infinite loop. It really meant to call updateNClob(int, Reader), but was calling itself instead.

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


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

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

commit f79c5401251b198cc417e5ca8ff589e885089ca2
Author: Kris Jurka <books at ejurka.com>
Date:   Fri Jul 27 10:22:33 2007 +0000

    ResultSet.updateNClob(String, Reader) goes into an infinite loop.
    It really meant to call updateNClob(int, Reader), but was calling
    itself instead.
    
    Mikko Tiihonen
---
 org/postgresql/jdbc4/AbstractJdbc4ResultSet.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java b/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java
index 21be585..2357386 100644
--- a/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java
+++ b/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java,v 1.1 2006/06/08 10:34:52 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java,v 1.2 2006/10/31 06:12:47 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -81,7 +81,7 @@ abstract class AbstractJdbc4ResultSet extends org.postgresql.jdbc3.AbstractJdbc3
 
     public void updateNClob(String columnName, Reader reader) throws SQLException
     {
-        updateNClob(columnName, reader);
+        updateNClob(findColumn(columnName), reader);
     }
 
     public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException

-- 
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