#35156: Update Doc comment about SQLite foreign keys
-----------------------------------------+------------------------
Reporter: bcail | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
[https://docs.djangoproject.com/en/5.0/topics/db/multi-db/#cross-database-
relations Multi-database docs] say the following:
{{{
However, if you’re using SQLite or MySQL with MyISAM tables, there is no
enforced referential integrity; as a result, you may be able to ‘fake’
cross database foreign keys.
}}}
But, foreign keys are enforced at the database level in SQLite, because
[https://github.com/django/django/blob/main/django/db/backends/sqlite3/base.py#L200
the PRAGMA] is turned on.
Should this comment be updated?
--
Ticket URL: <https://code.djangoproject.com/ticket/35156>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018d5bd4b679-1f488e0e-b9fb-4bda-8727-788c4f74a4bd-000000%40eu-central-1.amazonses.com.