#25257: Changing CharField to GenericIpAddress post postgresql should use "using
field::inet"
-------------------------------+--------------------
     Reporter:  Naddiseo       |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Migrations     |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The sql issued to postgresql when converting a CharField to a
 GenericIpAddress should be along the line of
 {{{#!sql
 ALTER TABLE table ALTER COLUMN ip_field TYPE inet USING ip_field::inet;
 }}}

 Instead I get an error:
 django.db.utils.ProgrammingError: column "ip" cannot be cast automatically
 to type inet
 HINT:  Specify a USING expression to perform the conversion.

--
Ticket URL: <https://code.djangoproject.com/ticket/25257>
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/051.47e23b40e7fad2a08a42ed9eaa1a753d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to