mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Split ignores_nulls_in_unique_constraints feature.
Oracle and SQL Server don't have exactly the same limitations. It's
worth treating them differently.
Backport of cff59bed from master
This commit is contained in:
@@ -229,7 +229,7 @@ class OneToOneRegressionTests(TestCase):
|
||||
|
||||
# Several instances of the origin are only possible if database allows
|
||||
# inserting multiple NULL rows for a unique constraint
|
||||
if connection.features.ignores_nulls_in_unique_constraints:
|
||||
if connection.features.supports_nullable_unique_constraints:
|
||||
UndergroundBar.objects.create()
|
||||
|
||||
# When there are several instances of the origin
|
||||
|
||||
Reference in New Issue
Block a user