Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 4ec6d281cdc67bee1c7ac272272ae500b600fe49 1 parent e15f7f3
@charettes charettes authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/queries/tests.py
View
7 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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.