This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_2_507 in repository libpostgresql-jdbc-java.
commit c9412d8f40bd7b13a68ee8d096e0d9e253315221 Author: Kris Jurka <[email protected]> Date: Sat Dec 1 09:17:49 2007 +0000 While custom type maps are not implemented, the code to detect the caller trying to use them threw a ClassCastException. Correctly detect the attempted use of custom types and bail out with a SQLException. --- org/postgresql/jdbc2/AbstractJdbc2Connection.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2Connection.java b/org/postgresql/jdbc2/AbstractJdbc2Connection.java index 58e158f..dd20521 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Connection.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Connection.java @@ -394,13 +394,11 @@ public abstract class AbstractJdbc2Connection implements BaseConnection { if (typemap != null) { - SQLData d = (SQLData) typemap.get(type); - if (d != null) + Class c = (Class) typemap.get(type); + if (c != null) { // Handle the type (requires SQLInput & SQLOutput classes to be implemented) - if (logger.logDebug()) - logger.debug("getObject(String,String) with custom typemap"); - throw org.postgresql.Driver.notImplemented(this.getClass(), "getObject(String,String)"); + throw new PSQLException(GT.tr("Custom type maps are not supported."), PSQLState.NOT_IMPLEMENTED); } } -- 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

