Permalink
Browse files

Fixed #21001 -- Added a regression test for empty string exclusion on…

… Oracle.

The issue was present in 1.4.x but has been reported to be fixed in master.

Thanks to @timgraham for the patch.
  • Loading branch information...
1 parent e15f7f3 commit 4ec6d281cdc67bee1c7ac272272ae500b600fe49 @charettes charettes committed Sep 23, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/queries/tests.py
@@ -2488,6 +2488,13 @@ def test_joined_exclude(self):
[self.nc.pk], attrgetter('pk')
)
+ def test_21001(self):
+ foo = NamedCategory.objects.create(name='foo')
+ self.assertQuerysetEqual(
+ NamedCategory.objects.exclude(name=''),
+ [foo.pk], attrgetter('pk')
+ )
+
class ProxyQueryCleanupTest(TestCase):
def test_evaluated_proxy_count(self):
"""

0 comments on commit 4ec6d28

Please sign in to comment.