X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3A04DD6834 for ; Mon, 7 Nov 2005 16:19:52 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 38279-06 for ; Mon, 7 Nov 2005 20:19:47 +0000 (GMT) X-Greylist: delayed 00:26:13.684055 by SQLgrey- Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 79670D6805 for ; Mon, 7 Nov 2005 16:19:41 -0400 (AST) Received: (qmail 29847 invoked from network); 7 Nov 2005 19:55:19 -0000 Received: from unknown (HELO ?127.0.0.1?) (63.111.27.212) by mail63.csoft.net with SMTP; 7 Nov 2005 19:55:19 -0000 Message-ID: <436FB0A6.5030504@ejurka.com> Date: Mon, 07 Nov 2005 11:53:10 -0800 From: Kris Jurka User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20051011 Debian/1.7.12-1 X-Accept-Language: en MIME-Version: 1.0 To: Gunnar Stefansson Cc: pgsql-jdbc@postgresql.org Subject: Re: Using WebRow set with Postgresql JDBC drivers... References: <436F7E01.3090509@teamware.com> In-Reply-To: <436F7E01.3090509@teamware.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/41 X-Sequence-Number: 14139 Gunnar Stefansson wrote: > Hello Dear Postgresql JDBC developers. > Please send JDBC questions to the JDBC list, not to individual developers. > I was experimenting with the WebRowSet reference implementation form Sun > and hit a "notImplemented" Exception. > > I made the following changes to the method below (as Sun is sending in > an empty map) and everything works as intended, > > I was wondering if you can include this into next update of the official > JDBS driver jar (any version) > > (We are still using 7.4.x) > > In "*org.postgresql.jdbc2.AbstractJdbc2ResultSet*" > > public Object getObjectImpl(int i, java.util.Map map) throws > SQLException > { > checkClosed(); > * if(map == null || map.isEmpty()) { > return internalGetObject(i, fields[i-1]); > }* > throw org.postgresql.Driver.notImplemented(this.getClass(), > "getObjectImpl(int,Map)"); > } > This seems like a reasonable thing to do. I'll add it to the 8.0 and 8.1 drivers. The 7.4 driver really isn't maintained anymore. Kris Jurka