[libpostgresql-jdbc-java] 08/11: Error message wants the paramter's registered return type, not the whole array of return types that will be displayed as something unintelligible.

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


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

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

commit e68e7df49406ad370fbbb5bd7c410ff280139dc3
Author: Kris Jurka <books at ejurka.com>
Date:   Sun Nov 5 05:44:44 2006 +0000

    Error message wants the paramter's registered return type, not the
    whole array of return types that will be displayed as something
    unintelligible.
---
 org/postgresql/jdbc2/AbstractJdbc2Statement.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
index 242ccff..74f9ee3 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.5 2006/05/23 19:37:24 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.6 2006/09/26 04:42:25 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -2362,7 +2362,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement
         checkIndex (parameterIndex);
         if (type1 != this.testReturn[parameterIndex-1] && type2 != this.testReturn[parameterIndex-1])
             throw new PSQLException(GT.tr("Parameter of type {0} was registered, but call to get{1} (sqltype={2}) was made.",
-                                          new Object[]{"java.sql.Types=" + testReturn,
+                                          new Object[]{"java.sql.Types=" + testReturn[parameterIndex-1],
                                                        getName,
                                                        "java.sql.Types=" + type1}),
                                     PSQLState.MOST_SPECIFIC_TYPE_DOES_NOT_MATCH);

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