Hello. Sorry for the late answer. I was on vacation. (It is strange nobody answered the question.)
On Mon, Jun 15, 2009 at 06:56:06PM +0300, Imri Goldberg wrote: > I had some trouble with cascade='null' not being acted on when using > deleteMany instead of destroySelf. [skip] > The output is: > [<Abc 2 field1='goodbye' finalID=1>, <Abc 4 field1='shmidt' finalID=None>] > I would expect that both objects would have finalID set to None. .deleteMany() sens DELETE query to the backend, so for ON DELETE constraints it requires the backend properly implements cascading. It seems SQLite doesn't implement it. I ran you program verbatim on Postgtres and both finalID were None. .destroySelf() implements cascading itself, without relying on a backend. Oleg. -- Oleg Broytmann http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss