diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-21 12:47:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 12:47:52 +0100 |
commit | 96bc4254ee84596e0d1fef1f2356d8736da3857a (patch) | |
tree | a2faad121c891c5791e8b6195f6b60d227980cb6 /django/db/backends/mysql/features.py | |
parent | a91e59e4a0fa9cbc6c662feaad6ac17b0f07ce9a (diff) | |
download | django-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.py | 10 |
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 |