You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be $connection->query('PRAGMA foreign_keys=true'); exucuted when SQLite connection is detected. Otherwise SQLite behave differently from other database backends.
The text was updated successfully, but these errors were encountered:
Version: master
Bug Description
I have been testing exception handling on PDO in #293 and I have found that SQLite does not check foreign keys by default.
Steps To Reproduce
Execute on test database (in tests/ directory)
Expected Behavior
Get ForeignKeyConstraintViolationException
Actual Behavior
It passes without exception
Possible Solution
Should be
$connection->query('PRAGMA foreign_keys=true');
exucuted when SQLite connection is detected. Otherwise SQLite behave differently from other database backends.The text was updated successfully, but these errors were encountered: