Please could we have support for isValid() method in JDBC driver?
Please could we have support for isValid() method in JDBC driver?
От:
jonathan.lister@vaisala.com
Дата:
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?
От:
Dave Cramer <pg@fastcrypt.com>
Дата:
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, 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?