summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2013-09-23 14:18:03 -0400
committerSimon Charette <charette.s@gmail.com>2013-09-23 14:18:03 -0400
commit4ec6d281cdc67bee1c7ac272272ae500b600fe49 (patch)
tree694a5c72d714757147ed2a7d11c7ee953e2fa574
parente15f7f31d048ead5453b5ee810235cf88b42b3cc (diff)
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.
-rw-r--r--tests/queries/tests.py7
1 files changed, 7 insertions, 0 deletions
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):
"""