mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
Co-authored-by: Tim Graham <timograham@gmail.com>
This commit is contained in:
parent
5ce31d6a71
commit
275dd4ebba
29 changed files with 248 additions and 87 deletions
|
@ -1218,11 +1218,6 @@ class AggregateTestCase(TestCase):
|
|||
Subquery annotations must be included in the GROUP BY if they use
|
||||
potentially multivalued relations (contain the LOOKUP_SEP).
|
||||
"""
|
||||
if connection.vendor == 'mysql' and 'ONLY_FULL_GROUP_BY' in connection.sql_mode:
|
||||
self.skipTest(
|
||||
'GROUP BY optimization does not work properly when '
|
||||
'ONLY_FULL_GROUP_BY mode is enabled on MySQL, see #31331.'
|
||||
)
|
||||
subquery_qs = Author.objects.filter(
|
||||
pk=OuterRef('pk'),
|
||||
book__name=OuterRef('book__name'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue