#29147: Postgres JSONField missing to_python
-------------------------------------+-------------------------------------
     Reporter:  Javier Buzzi         |                    Owner:  Williams
                                     |  Mendez
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.postgres     |                  Version:  1.9
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Williams Mendez):

 At first I thought the same, but when I try to store a String into a
 postgres 'jsonb' field it crashes.  Same when I try to fetch a string as a
 json:


 {{{
 will_test=# select 'hello'::json ;
 ERROR:  invalid input syntax for type json
 LINE 1: select 'hello'::json ;
                ^
 DETAIL:  Token "hello" is invalid.
 CONTEXT:  JSON data, line 1: hello


 will_test=# select '{}'::json ;
  json
 ------
  {}
 (1 row)
 }}}

 I'll do some research on that topic.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29147#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.0e686af935281c7cceb86ca9c3afb93d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to