summaryrefslogtreecommitdiff
path: root/tests
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:09:48 +0200
commit8a99d718f7db2d018a37f78a8e5639ff2d1d2aa8 (patch)
tree561339aebf91e1262ced9398f28c139d2279f7a5 /tests
parentb17a572eb36acfa59cdf001c4ed3b965ade2b7a7 (diff)
[1.5.x] 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, backpatch of 09fcb70c804b76fccc8fc0ac545873e5ab30c00a.
Diffstat (limited to 'tests')
-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()