pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike C. <mcbp223@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: [BUGS] BUG #2856: Jdbc 4 connector running on JDK 1.6 should
Date: Fri, 28 Sep 2007 06:13:41 -0700 (PDT)
Message-ID: <934411.43494.qm@web60823.mail.yahoo.com> (raw)


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.

view thread (7+ messages)  latest in thread

Message-ID: <934411.43494.qm@web60823.mail.yahoo.com>
Permalink:  ../934411.43494.qm@web60823.mail.yahoo.com/
Also on:    postgresql.org/message-id/934411.43494.qm@web60823.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mcbp223@yahoo.com
  Subject: Re: [BUGS] BUG #2856: Jdbc 4 connector running on JDK 1.6 should
  In-Reply-To: <934411.43494.qm@web60823.mail.yahoo.com>
  References: <934411.43494.qm@web60823.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox