milesibastos / jTDS

jTDS JDBC Driver
http://jtds.sourceforge.net/
GNU Lesser General Public License v2.1
81 stars 46 forks source link

Implement isValid method #18

Open ggrossetie opened 3 years ago

ggrossetie commented 3 years ago

The JDBC driver should implement the isValid method (probably using a select 1 query).

Currently, it throws a java.lang.AbstractMethodError exception:

Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError
    at net.sourceforge.jtds.jdbc.JtdsConnection.isValid(JtdsConnection.java:2833)

https://github.com/milesibastos/jTDS/blob/master/src/main/net/sourceforge/jtds/jdbc/JtdsConnection.java#L2853-L2856