summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/features.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-21 12:47:52 +0100
committerGitHub <noreply@github.com>2023-02-21 12:47:52 +0100
commit96bc4254ee84596e0d1fef1f2356d8736da3857a (patch)
treea2faad121c891c5791e8b6195f6b60d227980cb6 /django/db/backends/mysql/features.py
parenta91e59e4a0fa9cbc6c662feaad6ac17b0f07ce9a (diff)
downloaddjango-96bc4254ee84596e0d1fef1f2356d8736da3857a.tar.gz
Refs #31445 -- Added test for nesting QuerySet.union().
This was fixed in MySQL 8.0.31.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r--django/db/backends/mysql/features.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py
index 14fde6b08e..c657860b5d 100644
--- a/django/db/backends/mysql/features.py
+++ b/django/db/backends/mysql/features.py
@@ -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