|
@@ -473,9 +473,14 @@ class BaseDatabaseFeatures(object):
|
|
|
# Does the backend distinguish between '' and None?
|
|
|
interprets_empty_strings_as_nulls = False
|
|
|
|
|
|
+ # Does the backend allow inserting duplicate NULL rows in a nullable
|
|
|
+ # unique field? All core backends implement this correctly, but other
|
|
|
+ # databases such as SQL Server do not.
|
|
|
+ supports_nullable_unique_constraints = True
|
|
|
+
|
|
|
# Does the backend allow inserting duplicate rows when a unique_together
|
|
|
- # constraint exists, but one of the unique_together columns is NULL?
|
|
|
- ignores_nulls_in_unique_constraints = True
|
|
|
+ # constraint exists and some fields are nullable but not all of them?
|
|
|
+ supports_partially_nullable_unique_constraints = True
|
|
|
|
|
|
can_use_chunked_reads = True
|
|
|
can_return_id_from_insert = False
|