Skip to content

Commit

Permalink
Merge pull request #38 from upfluence/jba/enable-foreign-key-in-sqlit…
Browse files Browse the repository at this point in the history
…e-for-the-test

enable foreign key in sqlite needed for test
  • Loading branch information
jeanbaptisteupfluence committed Feb 16, 2024
2 parents 7878a8d + b64f359 commit 13e6169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqltest/test_case.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func buildSQLite(t testing.TB) (sqlutil.Option, func()) {

return sqlutil.WithMaster(
"sqlite3",
"file:"+tmpfile.Name()+"?cache=shared&mode=memory&_txlock=deferred",
"file:"+tmpfile.Name()+"?cache=shared&mode=memory&_txlock=deferred&_foreign_keys=true",
), func() { os.Remove(tmpfile.Name()) }
}

Expand Down

0 comments on commit 13e6169

Please sign in to comment.