Skip to content
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

Implicit transaction commit in mysql TRUNCATE causes error "There is no active transaction." #448

Open
jakubthedeveloper opened this issue Aug 11, 2023 · 0 comments

Comments

@jakubthedeveloper
Copy link

In ORMExecutor the code for purging db tables and loading fixtures is wrapped in one transaction.

If I try to purge tables with TRUNCATE (because I want to reset auto-increments) the transaction is implicitly closed and in the next step, when the fixtures are loaded I get: "There is no active transaction."

Any ideas how to fix it properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant