Commit 4ec6d281 authored by Simon Charette's avatar Simon Charette
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.
parent e15f7f31
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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):
        """