#31973: TypeError loading data in JSONField if DB has native JSON support
-------------------------------------+-------------------------------------
     Reporter:  Adam Alton           |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Andrew):

 I don't think this issue is invalid.  I have the exact same reproducible
 problem on a new django project with 3.1.0 vs 3.1.1.

 To fix it in the raw sql, you can append `::json` to field you are
 querying!

 3.1.1 really did introduce issues with `jsonb` fields for no good reason
 that I can see, since simply lying about the type works just fine!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31973#comment:18>
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/067.ef67bbf81731dfa1397c1f7ec32efc34%40djangoproject.com.

Reply via email to