Thread: Please could we have support for isValid() method in JDBC driver?

Please could we have support for isValid() method in JDBC driver?

From
jonathan.lister@vaisala.com
Date:

There is one sample implementation posted here: http://archives.postgresql.org/pgsql-jdbc/2012-01/msg00001.php

Is there a good reason why the pg jdbc driver currently throws Method org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented?

Is there a better solution to checking if a connection is valid rather than using the isValid() method?

Re: Please could we have support for isValid() method in JDBC driver?

From
Dave Cramer
Date:
It's actually in git. You would have to build a jar from source to get it.


Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Tue, Apr 24, 2012 at 8:24 AM,  <jonathan.lister@vaisala.com> wrote:
> There is one sample implementation posted here:
> http://archives.postgresql.org/pgsql-jdbc/2012-01/msg00001.php
>
> Is there a good reason why the pg jdbc driver currently throws “Method
> org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented?”
>
> Is there a better solution to checking if a connection is valid rather than
> using the isValid() method?