#30476: Add detection for PostgreSQL json field, aside from the already existing
detection for jsonb field, using inspectdb
-------------------------------------+-------------------------------------
     Reporter:  Héctor Pablos        |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  contrib.postgres     |                  Version:  2.2
     Severity:  Normal               |               Resolution:
     Keywords:  inspectdb,           |             Triage Stage:
  JSONField, json, jsonb             |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 There's enough significant differences between `json` and `jsonb` types
 which makes me believe this is not a good idea.

 For example, [https://www.postgresql.org/docs/9.4/datatype-json.html
 containment operators it not supported] on `json` columns while they are
 on `jsonb` ones which breaks the `__contains`
 [https://docs.djangoproject.com/en/2.2/ref/contrib/postgres/fields/#std
 :fieldlookup-hstorefield.contains operator].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30476#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.f24186139708728077fbbfd690a026c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to