Kaydet (Commit) f73f8211 authored tarafından Mariusz Felisiak's avatar Mariusz Felisiak Kaydeden (comit) Tim Graham

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

üst 92fe161e
......@@ -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:
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment