You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning during commit or rollback of the transaction - "No transaction is active" #164
changed the title [-]Not possilbe to commit or rollback transaction - "No transaction is active"[/-][+]Warning during commit or rollback of the transaction - "No transaction is active"[/+]on Oct 15, 2024
Activity
ospfranco commentedon Oct 15, 2024
Can you create a reproducible example? All the tests are passing
maksym-kyryliuk commentedon Oct 15, 2024
@ospfranco Sure, here is the link to the example.
Load the app, and press the "Go to list" button. On the next screen, you will see 2 buttons:
Both of them leads to the warning below:

maksym-kyryliuk commentedon Oct 15, 2024
Despite the warning above, the logic seems to work correctly for both commit and rollback. But this warning appears every time now for these cases.
Upd: Updated the title and description of the issue to reflect it.
[-]Not possilbe to commit or rollback transaction - "No transaction is active"[/-][+]Warning during commit or rollback of the transaction - "No transaction is active"[/+]maksym-kyryliuk commentedon Oct 15, 2024
Also there are two logs seems wasn't removed from the release:
Link: https://github.com/OP-Engineering/op-sqlite/blob/main/src/index.ts#L352
ospfranco commentedon Oct 16, 2024
You have to await the commit or the rollback. All sql operations are now async. After changing no warning is shown.