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.
This commit is contained in:
parent
e15f7f31d0
commit
4ec6d281cd
|
@ -2488,6 +2488,13 @@ class EmptyStringsAsNullTest(TestCase):
|
||||||
[self.nc.pk], attrgetter('pk')
|
[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):
|
class ProxyQueryCleanupTest(TestCase):
|
||||||
def test_evaluated_proxy_count(self):
|
def test_evaluated_proxy_count(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue