#5725: Inspectdb makes too long CharFields
------------------------------------------------+---------------------------
          Reporter:  anonymous                  |         Owner:  nobody        
     
            Status:  new                        |     Milestone:                
     
         Component:  django-admin.py inspectdb  |       Version:  SVN           
     
        Resolution:                             |      Keywords:  introspection 
mysql
             Stage:  Accepted                   |     Has_patch:  0             
     
        Needs_docs:  0                          |   Needs_tests:  0             
     
Needs_better_patch:  0                          |  
------------------------------------------------+---------------------------
Comment (by rokclimb15):

 There is definitely something more to this bug.

 I am using Python2.6 and MySQL server 5.1.37 with MySQLdb 1.2.2.  My
 database is utf8 and so are my tables.  When I introspect, I get the
 symptoms described above with charfields being 3x too long.  If I change
 the connection charset to latin1, it works properly.  I am wondering if
 there is an additional option that should be passed to the connection to
 indicate collation, or perhaps just a bug in MySQLdb with
 cursor.description.

 Can anyone else confirm this behavior?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5725#comment:5>
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