-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BeginTx does not verify TxOptions #685
Comments
+1 to this. Is there some reasoning behind the current behavior, like breaking code that (wrongly) assumes that go-sqlite3 supports these kinds of transactions? |
Just ran into this myself. |
brandond
added a commit
to brandond/kine
that referenced
this issue
Nov 8, 2024
Workaround for mattn/go-sqlite3#685 Signed-off-by: Brad Davidson <[email protected]>
brandond
added a commit
to k3s-io/kine
that referenced
this issue
Nov 8, 2024
Workaround for mattn/go-sqlite3#685 Signed-off-by: Brad Davidson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation for
ConnBeginTx.BeginTx
says the following:However, this library simply throws away the provided
TxOptions
without verifying them (link). This violates the contract. This library must verify thatopts.Isolation
issql.LevelDefault
and thatReadOnly
isfalse
.The text was updated successfully, but these errors were encountered: