[sqlalchemy] Re: merge with dont_load=True and lazy relations

2007-11-23 Thread klaus
Fine with me. ;-) Klaus On Nov 23, 6:37 am, Michael Bayer [EMAIL PROTECTED] wrote: Hi there - there are actually two bugs here, the second one is revealed after repairing the first. The first bug is that the merge() dont_load operation was not completing all the necessary housekeeping

[sqlalchemy] Re: merge with dont_load=True and lazy relations

2007-11-23 Thread Pierre-Yves Strub
Hi again, Now using SQLAlchemy r3811, using the code at http://pastie.caboo.se/121148 In this case, the merge operation do some lazy loading. When no inheritance is in use, the behaviour is not visible since the lazy loaded instance are already merged in the session

[sqlalchemy] Re: merge with dont_load=True and lazy relations

2007-11-23 Thread Michael Bayer
On Nov 23, 2007, at 6:11 AM, Pierre-Yves Strub wrote: Hi again, Now using SQLAlchemy r3811, using the code at http://pastie.caboo.se/121148 In this case, the merge operation do some lazy loading. When no inheritance is in use, the behaviour is not visible since

[sqlalchemy] Re: merge with dont_load=True and lazy relations

2007-11-22 Thread Michael Bayer
Hi there - there are actually two bugs here, the second one is revealed after repairing the first. The first bug is that the merge() dont_load operation was not completing all the necessary housekeeping on the newly generated copy of the instance, such that the lazy loader for zone (or