1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+.

This commit is contained in:
Mariusz Felisiak
2021-07-08 06:51:10 +02:00
committed by GitHub
parent 5013798fe9
commit 77b88fe621
4 changed files with 16 additions and 7 deletions

View File

@@ -185,7 +185,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
@cached_property
def has_select_for_update_skip_locked(self):
return not self.connection.mysql_is_mariadb and self.connection.mysql_version >= (8, 0, 1)
if self.connection.mysql_is_mariadb:
return self.connection.mysql_version >= (10, 6)
return self.connection.mysql_version >= (8, 0, 1)
@cached_property
def has_select_for_update_nowait(self):