Skip to content

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

@jakubthedeveloper

Description

@jakubthedeveloper

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions