Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 952589F98AA for ; Sun, 7 Oct 2007 16:49:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 71564-06 for ; Sun, 7 Oct 2007 16:49:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id A3FCB9F9911 for ; Sun, 7 Oct 2007 16:48:59 -0300 (ADT) Received: (qmail 5638 invoked by uid 1112); 7 Oct 2007 19:48:53 -0000 Date: Sun, 7 Oct 2007 15:48:53 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "Mike C." cc: pgsql-jdbc@postgresql.org Subject: Re: [BUGS] BUG #2856: Jdbc 4 connector running on JDK 1.6 should In-Reply-To: <934411.43494.qm@web60823.mail.yahoo.com> Message-ID: References: <934411.43494.qm@web60823.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/59 X-Sequence-Number: 17631 On Fri, 28 Sep 2007, Mike C. wrote: > On Fri, 5 Jan 2007, Steve Langridge wrote: > >> At the present time, I am not really interested in actually using the client >> info data at all - I really just need the getClientInfo() and setClientInfo() >> to rather not raise a not-implemented exception. With the JDBC 3 driver >> under Java 1.5, there were no problems, so I presume these methods were >> implemented - it is now a real hassle since when running under Java 1.6, one >> has to use the JDBC 4 driver. >> > > This is getting old, would you accept the naive implementation and > leave the bug open until someone implements the real logic? It's really > a showstopper on Glassfish / JDK 1.6 > I've implemented this in a similar fashion. The Javadoc spec indicates that setting a clientinfo property that isn't supported is an error, so I've done that. So now it won't throw an error on getClientInfo or setClientInfo with a null or empty properties. Can you test this jar file and see if it works for you? http://ejurka.com/pgsql/jars/clientinfo/ Kris Jurka