Comment (by Simon Charette):
This has become a true whack-a-mole game over the years.
I think we should just bite the bullet and audit all of our `as_sql`
functions to make sure they deal with params in `tuple` and not in `list`.
Otherwise the only true way to cover all cases is to have a unit test for
every combination of expression Django provides. Any thoughts on that
Mariusz?
Should we keep this issue focused on the `Window(ArrayAgg)` case or
perform a larger audit meant to be backported? We could at least make sure
all `as_sql` implementation are able to deal with `tuple | list` for now.
--
Ticket URL: <https://code.djangoproject.com/ticket/33898#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Mariusz Felisiak):
> Should we keep this issue focused on the Window(ArrayAgg) case or
perform a larger audit meant to be backported?
Yes we should focus this on fixing ` Window(ArrayAgg)` and backport do
4.1. Larger audit can be made on the `main` branch.
--
Ticket URL: <https://code.djangoproject.com/ticket/33898#comment:3>
* owner: nobody => Mariusz Felisiak
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/15924 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33898#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fd93db97c7228b16a4f92f97ef05b0d72418d952" fd93db97]:
{{{
#!CommitTicketReference repository=""
revision="fd93db97c7228b16a4f92f97ef05b0d72418d952"
Fixed #33898 -- Fixed Window() expression crash with ArrayAgg().
Thanks Kia for the report.
Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33898#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"d9ace347b4e38d9eac01d7a17a68b009c81f5c06" d9ace347]:
{{{
#!CommitTicketReference repository=""
revision="d9ace347b4e38d9eac01d7a17a68b009c81f5c06"
[4.1.x] Fixed #33898 -- Fixed Window() expression crash with ArrayAgg().
Thanks Kia for the report.
Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
Backport of fd93db97c7228b16a4f92f97ef05b0d72418d952 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33898#comment:6>