-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
sqlite3 docs: clarify transaction control for SELECT #96810
Comments
At least in my (beginner-level) reading of the docs, it seems implicit to me that a transaction is opened before these, and only these statements, i.e. in formal logic "If and only if a statement is a
|
Sure, I see no reason not to be explicit. It'll also help reduce the number of issues like this. |
… transactions (pythonGH-96832) (cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
… transactions (pythonGH-96832) (cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
…actions (GH-96832) (cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
…actions (GH-96832) (cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
…actions (GH-96832) (cherry picked from commit 16c33a9) Co-authored-by: Erlend E. Aasland <[email protected]>
Documentation
In https://docs.python.org/3/library/sqlite3.html#transaction-control, it says that transactions are implicitly opened before
INSERT
,UPDATE
,DELETE
, orREPLACE
statements, but it leaves open what happens forSELECT
statements. Especially in the light of #54133, it should be more clear thatSELECT
statements don't start a transaction, either by saying "only"INSERT
, etc. statements implicitly open transactions, or adding another sentence.CC: @erlend-aasland @CAM-Gerlach
The text was updated successfully, but these errors were encountered: