This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_2_512 in repository libpostgresql-jdbc-java.
commit dd91149a32c4a0f58d6b1b5ac5333c91dc48af58 Author: Kris Jurka <[email protected]> Date: Sun Mar 20 00:59:23 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 9625132..4869924 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.96.2.9 2009/09/26 15:21:40 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.96.2.10 2010/05/01 16:08:09 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -1684,6 +1684,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

