mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[5.1.x] Fixed #35732 -- Wrapped ConcatPair expression in parentheses to ensure operator precedence.
When ConcatPair was updated to use || this lost the implicit wrapping from CONCAT(...). This broke the WHERE clauses when used in combination with PostgreSQL trigram similarity. Regression in6364b6ee10. Backport ofc3ca6075ccfrom main. Co-authored-by: Emiliano Cuenca <106986074+emicuencac@users.noreply.github.com>
This commit is contained in:
committed by
Sarah Boyce
parent
bf45f06769
commit
590f5e09f0
@@ -9,4 +9,6 @@ Django 5.1.2 fixes several bugs in 5.1.1.
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
* ...
|
||||
* Fixed a regression in Django 5.1 that caused a crash when using the
|
||||
PostgreSQL lookup :lookup:`trigram_similar` on output fields from ``Concat``
|
||||
(:ticket:`35732`).
|
||||
|
||||
Reference in New Issue
Block a user