Skip to content

Conversation

@zeroshade
Copy link
Member

fixes #3728

This was a combination of two issues that are fixed in this PR:

  1. sqldriver.Connector needs to implement the io.Closer interface so that sql.DB.Close will call it and call Close on the adbc.Database object.
  2. rows.Close needs to also close the associated stmt. In the case of at least one driver (the duckdb driver in associated issue) not closing the stmt led to the handle to the duckdb database not being dropped despite calling Close on the database.

@github-actions github-actions bot added this to the ADBC Libraries 22 milestone Nov 19, 2025
@zeroshade zeroshade requested review from amoeba and lidavidm November 19, 2025 18:04
Copy link
Member

@amoeba amoeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I was able to test again with the changes here and the issue no longer appears.

@zeroshade zeroshade merged commit b04acdc into apache:main Nov 19, 2025
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Go] sqldriver doesn't release resources on db.Close

2 participants