On 09/12/2010 04:27 PM, Michael Bayer wrote:
> cant speak for Elixir, but your "passive_deletes" is on the wrong side in 
> your declarative example.
>
> The correlations between classical and declarative relationship patterns are 
> now individually contrasted at 
> http://www.sqlalchemy.org/docs/orm/relationships.html#basic-relational-patterns
>  .
>
> On Sep 11, 2010, at 10:58 PM, alex bodnaru wrote:
>
>> On 09/11/2010 04:31 AM, alex wrote:
>>> On 09/10/2010 05:41 PM, Michael Bayer wrote:
>>>> On Sep 10, 2010, at 4:13 AM, alex wrote:
>>>>
>>>>> hello friends,
>>>>>
>>>>> as sqlite has recently introduced support for on delete/update cascade,
>>>>> i'd like to implement the passive_* functionality for this driver too.
>>>>>
>>>>> please give me a hint where to start.
>>>> passive_delete and passive_update are database agnostic and only apply to 
>>>> what effects the ORM can expect from the underlying schema, just use them 
>>>> normally.
>>>>
>>> thanks a lot for your response michael.
>>> i spent a little time to make a more isolated test case, and it works with
>>> sa+orm, but not with elixir, that seems to forget to pass the 
>>> passive_deletes.
>>> i'm further inquiring there, in a hope to make a patch.
>>>
>>> best regards,
>>> alex
>> one further step took me closer to the problem. it happens with declarative 
>> too.
>> i'm attaching 3 scripts for comparison: one made with regular orm, one with
>> elixir and one with declarative. the same problem with elixir and 
>> declarative.
>> haven't tested on other rdbms.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sqlalchemy" group.
>> To post to this group, send email to sqlalch...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> sqlalchemy+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/sqlalchemy?hl=en.
>>
>> <cascade_declarative.py><cascade_elixir.py><cascade_orm.py>
thanks a lot michael.
indeed it works, but it seems counter-intuitive a little since passive_* should
in my opinion be on the side of the on * cascade it describes.
anyway, it's great, and hope to make it work with elixir too.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to