1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Refs #31445 -- Added test for nesting QuerySet.union().

This was fixed in MySQL 8.0.31.
This commit is contained in:
Mariusz Felisiak
2023-02-21 12:47:52 +01:00
committed by GitHub
parent a91e59e4a0
commit 96bc4254ee
2 changed files with 19 additions and 0 deletions

View File

@@ -154,6 +154,16 @@ class DatabaseFeatures(BaseDatabaseFeatures):
},
}
)
if self.connection.mysql_version < (8, 0, 31):
skips.update(
{
"Nesting of UNIONs at the right-hand side is not supported on "
"MySQL < 8.0.31": {
"queries.test_qs_combinators.QuerySetSetOperationTests."
"test_union_nested"
},
}
)
return skips
@cached_property