1
0
mirror of https://github.com/django/django.git synced 2025-10-22 05:09:39 +00:00
Simon Charette ffac97bf63 [6.0.x] Fixed #36612 -- Fixed a KeyTextTransform crash on MySQL against annotations.
MySQL only supports the ->> when used directly against columns, this can be
inferred by the presence of lhs.output_field.model as model bounds fields are
directly tied to columns.

Purposely don't systematically switch to using JSON_QUOTE(JSON_EXTRACT(...))
as there might be functional indices out there that rely on the SQL remaining
stable between versions.

Thanks Jacob Tavener for the report.

Backport of af84cfba5970fda8306860b650937701c7c03c6f from main.
2025-09-22 09:02:01 +02:00
..
2024-01-26 12:45:07 +01:00