Skip to content

Commit

Permalink
fix: close conn w/ db when checking if should update
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Dec 14, 2023
1 parent 67ec987 commit c5d6c7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c5d6c7a

Please sign in to comment.