mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator on Oracle and PostgreSQL.
The LIKE operator wildcard generated for contains, startswith, endswith and their case-insensitive variant lookups was conflicting with parameter interpolation on CREATE constraint statement execution. Ideally we'd delegate parameters interpolation in DDL statements on backends that support it but that would require backward incompatible changes to the Index and Constraint SQL generating methods. Thanks David Sanders for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
673fe2e3ec
commit
a8b3f96f6a
@@ -70,3 +70,7 @@ Bugfixes
|
||||
|
||||
* Fixed a regression in Django 2.2 where changes were not reliably detected by
|
||||
auto-reloader when using ``StatReloader`` (:ticket:`30323`).
|
||||
|
||||
* Fixed a migration crash on Oracle and PostgreSQL when adding a check
|
||||
constraint with a ``contains``, ``startswith``, or ``endswith`` lookup (or
|
||||
their case-insensitive variant) (:ticket:`30408`).
|
||||
|
||||
Reference in New Issue
Block a user