This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL9_0_802 in repository libpostgresql-jdbc-java.
commit 1640c7f03b254ee3b244fbd19b15900b8aa702df Author: Kris Jurka <[email protected]> Date: Sun Mar 20 00:58:37 2011 +0000 Allow the driver to support setObject with Types.DISTINCT. We report metadata indicating that values are of this type, so we'd better accept it coming back in. Reported by Vitalii Tymchyshyn. --- org/postgresql/jdbc2/AbstractJdbc2Statement.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 0d2a5ef..aeed2f8 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2008, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.117 2010/05/26 19:16:21 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.118 2010/07/23 19:55:36 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -1735,6 +1735,9 @@ public abstract class AbstractJdbc2Statement implements BaseStatement else throw new PSQLException(GT.tr("Cannot cast an instance of {0} to type {1}", new Object[]{in.getClass().getName(),"Types.ARRAY"}), PSQLState.INVALID_PARAMETER_TYPE); break; + case Types.DISTINCT: + bindString(parameterIndex, in.toString(), Oid.UNSPECIFIED); + break; case Types.OTHER: if (in instanceof PGobject) setPGobject(parameterIndex, (PGobject)in); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

