Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Quah committed Jan 26, 2023
1 parent 22852f4 commit 154cf36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/storage/engines/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def executescript(cursor: sqlite3.Cursor, script: str) -> None:
> first. No other implicit transaction control is performed; any transaction
> control must be added to sql_script.
"""
# The implementation of `executescript` can be found at
# https://github.com/python/cpython/blob/3.11/Modules/_sqlite/cursor.c#L1035.
cursor.executescript(f"BEGIN TRANSACTION; {script}")


Expand Down

0 comments on commit 154cf36

Please sign in to comment.