#11442: Postgresql backend casts inet types to text, breaks IP operations and 
IPv6
lookups.
---------------------------------------------------+------------------------
          Reporter:  eide                          |         Owner:  nobody     
       
            Status:  reopened                      |     Milestone:             
       
         Component:  Database layer (models, ORM)  |       Version:  1.1        
       
        Resolution:                                |      Keywords:  ipv6 
postgres inet
             Stage:  Accepted                      |     Has_patch:  0          
       
        Needs_docs:  0                             |   Needs_tests:  0          
       
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by dseomn):

 This also breaks ordering of IPv4 addresses, making some querysets return
 completely incorrect results.

 {{{
 foo=# select inet '127.0.0.3' < inet '127.0.0.10';
  ?column?
 ----------
  t
 (1 row)

 foo=# select '127.0.0.3' < '127.0.0.10';
  ?column?
 ----------
  f
 (1 row)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11442#comment:7>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to