#34144: Casting a string inside a JSONField into an integer does not work on
PostgreSQL
-------------------------------------+-------------------------------------
Reporter: Clément Escolano | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: postgresql, | Triage Stage:
jsonfield, cast | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Clément Escolano):
Thank you for the information and the method on how to solve my problem.
It would have been great that django automatically uses this method (when
using the Cast method, I expect the casting to not have issues) but I
assume this is for a good reason.
--
Ticket URL: <https://code.djangoproject.com/ticket/34144#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018456eb5232-1936c62f-f168-43ff-90bd-411eda2ee1b6-000000%40eu-central-1.amazonses.com.