[sqlalchemy] Re: sqlacodegen bug ?

2017-06-14 Thread Kevin Ernst
Hi Jean-Luc, I wish I'd seen your post earlier, I could've helped. :) I had this exact same problem today, found your post by searching for "sqlacodegen table class." Something in this semi-unrelated post by Mike Bayer

[sqlalchemy] Re: add if relationship is involved

2010-09-12 Thread Ernst
I found that it is essential to first point the parent to the child and only then set the back reference from in the child object to the parent. Otherwise the ORM goes into non-ending recursion. On Sep 12, 3:52 pm, Ernst er...@hisplace.net wrote: Hi, I do not understand the backref bit

[sqlalchemy] add if relationship is involved

2010-09-12 Thread Ernst Arnold
by the ORM I do not know. I just noticed a mistake. Need to add to ExamplesOrm.py: mapper(OldSon, inherits=son_mapper, polymorphic_identity='oldson') This did not change the test results. Thanks for your time Ernst Michael Bayer: Its impossible for me to assist you further without the benefit

[sqlalchemy] Re: add if relationship is involved

2010-09-11 Thread Ernst
/python2.5/sqlalchemy/orm/attributes.py, line 584, in set old = self.get(state, dict_) RuntimeError: maximum recursion depth exceeded Regards Ernst On Sep 11, 1:50 am, Ernst er...@hisplace.net wrote: Made two changes: applicant_table = Table('applicant', metadata,   Column('id',Integer