We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c1ab5 commit 902f5eaCopy full SHA for 902f5ea
sqldev/src/main/java/org/utplsql/sqldev/model/DatabaseTools.java
@@ -58,4 +58,12 @@ public static Connection getConnection(String connectionName) {
58
throw new GenericDatabaseAccessException(msg, e);
59
}
60
61
+
62
+ public static boolean isConnectionClosed(Connection conn) {
63
+ try {
64
+ return conn.isClosed();
65
+ } catch (SQLException e) {
66
+ throw new GenericDatabaseAccessException("Error getting status of connection.", e);
67
+ }
68
69
0 commit comments