Skip to content

Commit c5d6c7a

Browse files
committed
fix: close conn w/ db when checking if should update
1 parent 67ec987 commit c5d6c7a

File tree

1 file changed

+1
-1
lines changed
  • metals/src/main/scala/scala/meta/internal/metals

1 file changed

+1
-1
lines changed

metals/src/main/scala/scala/meta/internal/metals/Tables.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ final class Tables(
177177
val formatVersionChangedMessage =
178178
"The write format 2 is smaller than the supported format 3"
179179
try {
180-
DriverManager.getConnection(url, user, null)
180+
DriverManager.getConnection(url, user, null).close()
181181
} catch {
182182
case e: SQLException if e.getErrorCode() == 90048 =>
183183
e.getCause() match {

0 commit comments

Comments
 (0)