mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Turn foreign keys on by default for SQLite tests
This makes its behaviour more compatible with the other backends and will make writing tests relying on FKs working simpler.
This commit is contained in:
@@ -951,7 +951,9 @@ public:
|
||||
// database if nothing is specified on the command line.
|
||||
if (argFromCommandLine.empty())
|
||||
{
|
||||
argFromCommandLine = ":memory:";
|
||||
// Enable FKs by default to make SQLite behaviour more compatible
|
||||
// with the other backends.
|
||||
argFromCommandLine = "db=:memory: foreign_keys=on";
|
||||
}
|
||||
|
||||
return test_context_base::initialize_connect_string(argFromCommandLine);
|
||||
|
||||
Reference in New Issue
Block a user