mirror of
https://github.com/django/django.git
synced 2025-04-01 03:56:42 +00:00
Refs #23576 -- Disabled MySQL multi-alias deletion path on MariaDB >= 10.3.2.
This commit is contained in:
parent
632d7bbd3d
commit
5b83bae031
@ -15,7 +15,7 @@ class SQLInsertCompiler(compiler.SQLInsertCompiler, SQLCompiler):
|
|||||||
|
|
||||||
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
|
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
|
||||||
def as_sql(self):
|
def as_sql(self):
|
||||||
if self.single_alias:
|
if self.connection.features.update_can_self_select or self.single_alias:
|
||||||
return super().as_sql()
|
return super().as_sql()
|
||||||
# MySQL and MariaDB < 10.3.2 doesn't support deletion with a subquery
|
# MySQL and MariaDB < 10.3.2 doesn't support deletion with a subquery
|
||||||
# which is what the default implementation of SQLDeleteCompiler uses
|
# which is what the default implementation of SQLDeleteCompiler uses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user