From c5d6c7a268825459784bce4bd4176816c22ace61 Mon Sep 17 00:00:00 2001 From: Katarzyna Marek Date: Wed, 13 Dec 2023 16:42:11 +0100 Subject: [PATCH] fix: close conn w/ db when checking if should update --- metals/src/main/scala/scala/meta/internal/metals/Tables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metals/src/main/scala/scala/meta/internal/metals/Tables.scala b/metals/src/main/scala/scala/meta/internal/metals/Tables.scala index d6649b81e17..b51a7d9680a 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/Tables.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/Tables.scala @@ -177,7 +177,7 @@ final class Tables( val formatVersionChangedMessage = "The write format 2 is smaller than the supported format 3" try { - DriverManager.getConnection(url, user, null) + DriverManager.getConnection(url, user, null).close() } catch { case e: SQLException if e.getErrorCode() == 90048 => e.getCause() match {