summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2013-02-23 00:00:41 +0200
committerAnssi Kääriäinen <akaariai@gmail.com>2013-02-23 00:05:31 +0200
commit09fcb70c804b76fccc8fc0ac545873e5ab30c00a (patch)
tree56c319b8f2b374ec40ded24b2f69027559e77208 /tests/regressiontests
parent60fff6fc9496c7c851182dd6ebac10bb011be2ba (diff)
Fixed empty strings + to_field regression on Oracle
Querying the reverse side of nullable to_field relation, where both sides can contain null values resulted in incorrect results. The reason was not detecting '' as NULL. Refs #17541
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/many_to_one_regress/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/many_to_one_regress/tests.py b/tests/regressiontests/many_to_one_regress/tests.py
index e140577a49..a9969a7e90 100644
--- a/tests/regressiontests/many_to_one_regress/tests.py
+++ b/tests/regressiontests/many_to_one_regress/tests.py
@@ -126,7 +126,7 @@ class ManyToOneRegressionTests(TestCase):
# Now the model is saved, so we will need to execute an query.
with self.assertNumQueries(1):
self.assertEqual(th.child_set.count(), 0)
-
+
def test_related_null_to_field(self):
c1 = Car.objects.create()
c2 = Car.objects.create()