-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder on PostgreSQL. #13358
Conversation
e5be296
to
57235fe
Compare
@adamchainz @pope1ni Thanks both 👍 I pushed updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch LGTM, glad to see this usage of select_format
and ::text
removed.
The CI failures are due to JSONBAgg.convert_value
returning []
instead of '[]'
as expected after this commit.
django/django/contrib/postgres/aggregates/general.py
Lines 49 to 51 in 4c0b472
def convert_value(self, value, expression, connection): | |
if not value: | |
return [] |
Thanks for reviews 🚀 |
…coder on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.
Sorry for not jumping into this earlier. For some reason, I didn't receive an email for the ticket and I discovered this just now. Anyway, just leaving this note: I think the primary reason why I didn't use Thanks, everyone! ✌️ |
Fixes lcd1232#25; related change in Django project django/django#13358
Fixes lcd1232#25; related change in Django project django/django#13358
Fixes #25; related change in Django project django/django#13358 Co-authored-by: Rick Vause <rick.vause@pathai.com>
ticket-31956
Thanks Marc Debureaux for the report.