diff options
Diffstat (limited to 'django/db/backends/mysql/features.py')
| -rw-r--r-- | django/db/backends/mysql/features.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 57f4c8ee76..56370bfcd9 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -10,7 +10,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): # MySQL doesn't support sliced subqueries with IN/ALL/ANY/SOME. allow_sliced_subqueries_with_in = False has_select_for_update = True - has_select_for_update_nowait = False supports_forward_references = False supports_regex_backreferencing = False supports_date_lookup_using_string = False @@ -84,6 +83,12 @@ class DatabaseFeatures(BaseDatabaseFeatures): return self.connection.mysql_version >= (8, 0, 2) @cached_property + def has_select_for_update_skip_locked(self): + return self.connection.mysql_version >= (8, 0, 1) + + has_select_for_update_nowait = has_select_for_update_skip_locked + + @cached_property def needs_explain_extended(self): # EXTENDED is deprecated (and not required) in 5.7 and removed in 8.0. return self.connection.mysql_version < (5, 7) |
