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:
Simon Charette 2013-09-23 14:18:03 -04:00
parent e15f7f31d0
commit 4ec6d281cd
1 changed files with 7 additions and 0 deletions

View File

@ -2488,6 +2488,13 @@ class EmptyStringsAsNullTest(TestCase):
[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):
"""