#2591: manage.py inspectdb causes exception on postgresql_psycopg2 backend
-----------------------------------+----------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian                
   
     Status:  new                  |            Component:  django-admin.py 
inspectdb
    Version:                       |           Resolution:                      
     
   Keywords:                       |                Stage:  Accepted            
     
  Has_patch:  1                    |           Needs_docs:  0                   
     
Needs_tests:  0                    |   Needs_better_patch:  0                   
     
-----------------------------------+----------------------------------------
Comment (by [EMAIL PROTECTED]):

 The problem is that when values like "{2}" or "{1}" are returned from
 PostGreSQL database, the cursor.fetchall() method returns them as a list.
 Since this is special case, we should probably check for ''type(var) ==
 types.ListType'' before ''relations[int(row[0][0]) - 1] = (int(row[1][0])
 - 1, row[2]).''
 - CG

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2591#comment:4>
Django Code <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