Removed uneeded comment in DatabaseWrapper.check_constraints() on SQLite/MySQL backends.

This commit is contained in:
Mariusz Felisiak 2018-02-01 02:02:45 +01:00 committed by Tim Graham
parent 92fe161e69
commit f73f821143
2 changed files with 0 additions and 14 deletions

View File

@ -286,13 +286,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
`disable_constraint_checking()` and `enable_constraint_checking()`, to
determine if rows with invalid references were entered while constraint
checks were off.
Raise an IntegrityError on the first invalid foreign key reference
encountered (if any) and provide detailed information about the
invalid reference in the error message.
Backends can override this method if they can more directly apply
constraint checking (e.g. via "SET CONSTRAINTS ALL IMMEDIATE")
"""
with self.cursor() as cursor:
if table_names is None:

View File

@ -227,13 +227,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
`disable_constraint_checking()` and `enable_constraint_checking()`, to
determine if rows with invalid references were entered while constraint
checks were off.
Raise an IntegrityError on the first invalid foreign key reference
encountered (if any) and provide detailed information about the
invalid reference in the error message.
Backends can override this method if they can more directly apply
constraint checking (e.g. via "SET CONSTRAINTS ALL IMMEDIATE")
"""
with self.cursor() as cursor:
if table_names is None: