mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Regression in 1a28dc3887.
The usage of CONCAT to allow SearchVector to deal with non-text fields
made the generated expression non-IMMUTABLE which prevents a functional
index to be created for it.
Using a combination of COALESCE and ::text makes sure the expression
preserves its immutability.
Refs #29582. Thanks Andrew Brown for the report, Nick Pope for the
review.
17 KiB
17 KiB