On Wed, Feb 23, 2011 at 2:39 PM, Alex Gaynor <alex.gay...@gmail.com> wrote:
>
>
> 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

That sound you heard was my facepalm as I remembered something that I
should have remembered without prompting. :-)

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.

Reply via email to