Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqldev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- The Basics -->
<groupId>org.utplsql</groupId>
<artifactId>org.utplsql.sqldev</artifactId>
<version>0.6.3</version>
<version>0.6.4</version>
<packaging>bundle</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ class UtplsqlWorksheet {

private def setConnection(String connectionName) {
if (connectionName !== null && preferences.unsharedWorksheet) {
this.connectionName = Connections.instance.createPrivateConnection(connectionName)
// fix for issue #47 - private connections are not closed in SQLDev >= 17.4.0
try {
// temporary connection is closed when worksheet is closed, but requires SQLDev >= 17.4.0
this.connectionName = Connections.instance.createTemporaryConnection(connectionName)
} catch (Throwable e) {
// private connection is closed when worksheet is closed in SQLDev < 17.4.0
this.connectionName = Connections.instance.createPrivateConnection(connectionName)
}
} else {
this.connectionName = connectionName;
}
Expand Down