Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 509409FB2FB for ; Fri, 28 Sep 2007 10:13:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 27755-10 for ; Fri, 28 Sep 2007 10:13:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web60823.mail.yahoo.com (web60823.mail.yahoo.com [209.73.178.231]) by postgresql.org (Postfix) with SMTP id C8D2E9F9FC0 for ; Fri, 28 Sep 2007 10:13:43 -0300 (ADT) Received: (qmail 43669 invoked by uid 60001); 28 Sep 2007 13:13:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=DF20Rt2HiGAoOYzaIBmw/pUM4JpeUg0c+ikXAywKRiRRk4ZLUg55/dmMhzZrpbhieA5N6oPsSKlJycqJRPIUZFYBXlI++BjzlgQ8Z/3ZFU23mlqDJwJ2Noi9W+YaBnggyFBxDtQYue+3IaFLEu6qGAtca8R2hu93GD9kMXvRy2U=; X-YMail-OSG: gyDS7wMVM1kucWhuKVIr3HPoJYnROASCCqnf9aE6I1dMT5dxj_lqk2IujEf7lE3Db7NDmWuP7226E3p1QuwBCBSyBj9HsaK.gOpxCYve.kKimubnzoi0K6Xtai8EWFc- Received: from [92.80.211.203] by web60823.mail.yahoo.com via HTTP; Fri, 28 Sep 2007 06:13:41 PDT Date: Fri, 28 Sep 2007 06:13:41 -0700 (PDT) From: "Mike C." Subject: Re: [BUGS] BUG #2856: Jdbc 4 connector running on JDK 1.6 should To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1742517818-1190985221=:43494" Content-Transfer-Encoding: 8bit Message-ID: <934411.43494.qm@web60823.mail.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/129 X-Sequence-Number: 17551 --0-1742517818-1190985221=:43494 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Kris Jurka 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. > These methods are new in JDBC 4 which is why it wasn't a problem with JDBC 3. I understand that all you want is not to error, but I don't think that's appropriate behavior for all users. Kris Jurka 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 (AbstractJdbc4Connection.java) private Properties clientInfo = null; public void setClientInfo(String name, String value) throws SQLClientInfoException { if(clientInfo == null) clientInfo = new Properties(); clientInfo.setProperty(name, value); //throw new SQLClientInfoException("Not implemented.", null); } public void setClientInfo(Properties properties) throws SQLClientInfoException { clientInfo = properties; //throw new SQLClientInfoException("Not implemented.", null); } public String getClientInfo(String name) throws SQLException { if(clientInfo == null) return null; return clientInfo.getProperty(name); //throw org.postgresql.Driver.notImplemented(this.getClass(), "getClientInfo(String)"); } public Properties getClientInfo() throws SQLException { return clientInfo; //throw org.postgresql.Driver.notImplemented(this.getClass(), "getClientInfo()"); } --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. --0-1742517818-1190985221=:43494 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

Kris Jurka <books@ejurka.com> 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.
>

These methods are new in JDBC 4 which is why it wasn't a problem with JDBC
3. I understand that all you want is not to error, but I don't think
that's appropriate behavior for all users.

Kris Jurka


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
 
    (AbstractJdbc4Connection.java)
 
    private Properties clientInfo = null;
   
    public void setClientInfo(String name, String value) throws SQLClientInfoException
    {
        if(clientInfo == null)
            clientInfo = new Properties();
       
        clientInfo.setProperty(name, value);
        //throw new SQLClientInfoException("Not implemented.", null);
    }
   
    public void setClientInfo(Properties properties) throws SQLClientInfoException
    {
        clientInfo = properties;
        //throw new SQLClientInfoException("Not implemented.", null);
    }
   
    public String getClientInfo(String name) throws SQLException
    {
        if(clientInfo == null)
            return null;
       
        return clientInfo.getProperty(name);
        //throw org.postgresql.Driver.notImplemented(this.getClass(), "getClientInfo(String)");
    }
   
    public Properties getClientInfo() throws SQLException
    {
        return clientInfo;
        //throw org.postgresql.Driver.notImplemented(this.getClass(), "getClientInfo()");
    }
 


Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. --0-1742517818-1190985221=:43494--