Skip to content

Commit

Permalink
dialect/sql/schema: disable foreign keys before opening a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
masseelch committed Sep 27, 2022
1 parent 8b86528 commit 670fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect/sql/schema/sqlite.go
Expand Up @@ -44,7 +44,7 @@ func (d *SQLite) Tx(ctx context.Context) (dialect.Tx, error) {
if err != nil {
return nil, err
}
tx := &tx{ExecQuerier: t, Tx: t}
tx := &tx{t}
cm, err := sqlite.CommitFunc(ctx, db, tx, true)
return &SQLiteTx{Tx: t, commit: cm, rollback: sqlite.RollbackFunc(ctx, db, tx, true)}, nil
}
Expand Down

0 comments on commit 670fac5

Please sign in to comment.