Skip to content

Comments

Use latest modernc.org/sqlite and remove temporary fix#6836

Merged
prathyushpv merged 1 commit intomainfrom
ppv/latestSqlite
Nov 18, 2024
Merged

Use latest modernc.org/sqlite and remove temporary fix#6836
prathyushpv merged 1 commit intomainfrom
ppv/latestSqlite

Conversation

@prathyushpv
Copy link
Contributor

@prathyushpv prathyushpv commented Nov 18, 2024

What changed?

Use the latest release of modernc.org/sqlite library which has our fix for the connection cancellation issue: https://gitlab.com/cznic/sqlite/-/merge_requests/74.
We had a temporary fix merged in #6815. Reverting that as well.

Why?

Sqlite library did not implement functions ResetSession() and IsValid() in the database connection. sql library was discarding a database connection when a context was canceled during a transaction. The new version of modernc.org/sqlite has these two methods implemented.

How did you test it?

Existing unit test to verify the connection is not lost.

Potential risks

None

Documentation

Is hotfix candidate?

No

@prathyushpv prathyushpv requested a review from a team as a code owner November 18, 2024 15:20
@prathyushpv prathyushpv requested a review from bergundy November 18, 2024 15:20
@prathyushpv prathyushpv merged commit 406b681 into main Nov 18, 2024
@prathyushpv prathyushpv deleted the ppv/latestSqlite branch November 18, 2024 18:50
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.

2 participants