#11015: django-1.0.2 does not catch the exception that database backend first 
close
the db connection.
---------------------------------------------------+------------------------
          Reporter:  qingran                       |         Owner:  nobody
            Status:  closed                        |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  1.0   
        Resolution:  worksforme                    |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  0     
        Needs_docs:  0                             |   Needs_tests:  0     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by gkulewski):

 That was really helpful, thanks.

 Good it works for you. But it does not work for others. Look above. Use
 google to get many more such results. Something definitively _is_ broken,
 it's just hard to track it down. I will post if I have more info.

 As for now I know only that it is most probably related to:
 - the admin,
 - postgresql,
 - not OS specific (happens on linux and bsd at least),
 - cascading removes of complex object hierarchies in the admin (but maybe
 not only),
 - most probably these hierarchies have generic relations inside (may be
 the trigger or may not be).

 For example it happens when trying to remove an user (as in django.auth
 User) in my application because the user is linked to gazilion of other
 objects that should be also deleted (since django wants to cascade
 deletes). It also happens sometimes when trying to remove other objects
 that cascade and have generic relations in the hierarchy. But again - the
 exception happens way after the real error showing exactly nothing useful
 and there are so many objects involved that I can only guess what could
 the trigger be.

 Any help to track it down will be appreciated. If anybody else is really
 interested in it, that is.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11015#comment:6>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to