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:
Vadim Zeitlin
2025-01-21 01:50:56 +01:00
parent 03a716a688
commit 2a8abbe49f

View File

@@ -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);