From 4ec6d281cdc67bee1c7ac272272ae500b600fe49 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 23 Sep 2013 14:18:03 -0400 Subject: [PATCH] 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. --- tests/queries/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/queries/tests.py b/tests/queries/tests.py index e58f05c4e5..ebc8b525df 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -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): """