We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe8f19 commit d0d6ef1Copy full SHA for d0d6ef1
1 file changed
sqldev/src/main/java/org/utplsql/sqldev/model/DatabaseTools.java
@@ -104,22 +104,8 @@ public static String createTemporaryOrPrivateConnection(String connectionName) {
104
}
105
106
107
- public static boolean isConnectionClosed(Connection conn) {
108
- try {
109
- return conn.isClosed();
110
- } catch (SQLException e) {
111
- throw new GenericDatabaseAccessException("Error getting status of connection.", e);
112
- }
113
114
-
115
public static void closeConnection(Connection conn) {
116
- if (!isConnectionClosed(conn)) {
117
118
- conn.close();
119
120
- throw new GenericDatabaseAccessException("Could not close connection.");
121
122
+ abortConnection(conn);
123
124
125
public static void abortConnection(Connection conn) {
0 commit comments