File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
sqldev/src/main/java/org/utplsql/sqldev/model Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -104,22 +104,8 @@ public static String createTemporaryOrPrivateConnection(String connectionName) {
104
104
}
105
105
}
106
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
107
public static void closeConnection (Connection conn ) {
116
- if (!isConnectionClosed (conn )) {
117
- try {
118
- conn .close ();
119
- } catch (SQLException e ) {
120
- throw new GenericDatabaseAccessException ("Could not close connection." );
121
- }
122
- }
108
+ abortConnection (conn );
123
109
}
124
110
125
111
public static void abortConnection (Connection conn ) {
You can’t perform that action at this time.
0 commit comments