Re: [sqlalchemy] One to many lazy load generates incorrect query when the parent attribute appears more than once in the join expression

2015-02-02 Thread Demetrio Girardi
On Tuesday, February 3, 2015 at 1:50:25 AM UTC+1, Michael Bayer wrote: this is issue https://bitbucket.org/zzzeek/sqlalchemy/issue/3300/create_lazy_clause-is-only-turning-a which is fixed for master and 0.9.9. Please confirm git master and/or rel_0_9 tag works now, thanks! I can

[sqlalchemy] One to many lazy load generates incorrect query when the parent attribute appears more than once in the join expression

2015-02-01 Thread Demetrio Girardi
I am trying to define a relationship that self-joins multiple columns on IS NOT DISTINCT FROM. Since the backend I use does not support it, I mimic it like this: - notdistinct = lambda a, b: ~((a != b) | (a == None) | (b == None)) | ((a == None) (b == None)) - rel = relationship('Table', -