summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-12-22 23:00:04 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-02-06 16:57:44 +0100
commit089deb82b9ac2d002af36fd36f288368cdac4b53 (patch)
tree5a9952ec4a9fa0ee73b233bc5551ac645543ea40 /tests/postgres_tests/test_array.py
parentb13b8684a04d0bc1081104c5973c62c27dc673b0 (diff)
Fixed #36025 -- Fixed re-aliasing of iterable (in/range) lookups rhs.
In order for Expression.relabeled_clone to work appropriately its get_source_expressions method must return all resolvable which wasn't the case for Lookup when its right-hand-side is "direct" (not a compilable). While refs #22288 added support for non-literals iterable right-hand-side lookups it predated the subclassing of Lookup(Expression) refs #27021 which could have been an opportunity to ensure right-hand-sides are always resolvable (ValueList and ExpressionList). Addressing all edge case with non-resolvable right-hand-sides would require a significant refactor and deprecation of some parts of the Lookup interface so this patch only focuses on FieldGetDbPrepValueIterableMixin (In and Range lookups) by making sure that a right-hand-side containing resolvables are dealt with appropriately during the resolving phase. Thanks Aashay Amballi for the report.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
0 files changed, 0 insertions, 0 deletions