On Wed, Feb 23, 2011 at 1:37 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote:
> On Mon, Feb 21, 2011 at 1:56 PM, Rahul <rahul.priyadar...@in.ibm.com> > wrote: > > When i ran the test cases ( "modeltests/delete/ > > test_inheritance_cascade_up" ) which were doing cascade up for > > inherited models, it failed for DB2 cause of the fact that DB2 doesn't > > support initial deferred constraint checks like behavior, hence it is > > must to execute delete statement from child to parent, however when I > > traced the sql execution for "modeltests/delete/ > > test_inheritance_cascade_up" test case, what I find is Django tried to > > execute delete sql from parent to child. I already had the flag > > "can_defer_constraint_checks" set to false inside DatabaseFeatures. > > To the best of my knowledge, that flag is only used for testing > purposes. It is used to identify tests that will be known to fail > because of required forward referenced foreign keys in test data. In > practice, the only officially supported database that is affected is > MySQL/InnoDB. > > No it is used: http://code.djangoproject.com/browser/django/trunk/django/db/models/deletion.py#L17 > > Wondering if there a hook exists through which i can change the parent > > to child execution of sql to child to parent through our DB2 Django > > adaptor. > > No, that hook doesn't exist -- because only because none of the other > databases have needed it. > > As always, if you find yourself in a position where you need a hook or > other configuration item in order to support the features (or lack > thereof) of your third-party database backend, make a proposal. > > Yours, > Russ Magee %-) > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > > Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.