summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-14 15:07:08 +0200
committerGitHub <noreply@github.com>2020-05-14 15:07:08 +0200
commit3a941230c85b2702a5e1cd97e17251ce21057efa (patch)
tree8e2e050391b799c910dc31f43254cc5a8e92d477 /tests
parent03537e245886ed1811444c0993025dc2e08ac38b (diff)
Fixed #31584 -- Fixed crash when chaining values()/values_list() after Exists() annotation and aggregation on Oracle.
Oracle requires the EXISTS expression to be wrapped in a CASE WHEN in the GROUP BY clause. Regression in efa1908f662c19038a944129c81462485c4a9fe8.
Diffstat (limited to 'tests')
-rw-r--r--tests/annotations/tests.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
index dad34e03eb..142c23ead6 100644
--- a/tests/annotations/tests.py
+++ b/tests/annotations/tests.py
@@ -1,9 +1,7 @@
import datetime
from decimal import Decimal
-from unittest import skipIf
from django.core.exceptions import FieldDoesNotExist, FieldError
-from django.db import connection
from django.db.models import (
BooleanField, CharField, Count, DateTimeField, Exists, ExpressionWrapper,
F, Func, IntegerField, Max, NullBooleanField, OuterRef, Q, Subquery, Sum,
@@ -623,7 +621,6 @@ class NonAggregateAnnotationTestCase(TestCase):
).values('name')
self.assertCountEqual(publisher_books_qs, [{'name': 'Sams'}, {'name': 'Morgan Kaufmann'}])
- @skipIf(connection.vendor == 'oracle', 'See https://code.djangoproject.com/ticket/31584')
def test_annotation_exists_aggregate_values_chaining(self):
qs = Book.objects.values('publisher').annotate(
has_authors=Exists(Book.authors.through.objects.filter(book=OuterRef('pk'))),