[sqlalchemy] Backref and backref arguments

2018-02-23 Thread jens . troeger
Hi, I’d like to follow up on the Backref Arguments example from the documentation. First, to make sure I understand this correctly, are these two lines equivalent? I would assume so, considering this comment

Re: [sqlalchemy] Error with polymorphic selectin and adding item to session.info: 'expanding' parameters can't be used with an empty list

2018-02-23 Thread damon
Awesome, thanks Mike! Looking forward to the release. Damon On Friday, February 23, 2018 at 11:20:33 AM UTC-8, Mike Bayer wrote: > > On Fri, Feb 23, 2018 at 1:38 PM, Mike Bayer > wrote: > > *perfect* test case, I'll get a bug report up and can fix this quickly, > thanks! > > here's the issue

Re: [sqlalchemy] SQLAlchemy lock-up when logging to a database

2018-02-23 Thread Stefan Schwarzer
On Wednesday, February 21, 2018 at 10:31:30 PM UTC+1, Mike Bayer wrote: > > or have your logger look for that "log_only" token in the logger name > and skip on that, that's more future-proof. > Yes, using a specific logger for the engine seems to work. :-) I had looked for something like this,

Re: [sqlalchemy] Error with polymorphic selectin and adding item to session.info: 'expanding' parameters can't be used with an empty list

2018-02-23 Thread Mike Bayer
On Fri, Feb 23, 2018 at 1:38 PM, Mike Bayer wrote: > *perfect* test case, I'll get a bug report up and can fix this quickly, > thanks! here's the issue: https://bitbucket.org/zzzeek/sqlalchemy/issues/4199/selectin-polymorphic-hitting-expanding-in here's the patch: https://gerrit.sqlalchemy.org

Re: [sqlalchemy] Error with polymorphic selectin and adding item to session.info: 'expanding' parameters can't be used with an empty list

2018-02-23 Thread Mike Bayer
*perfect* test case, I'll get a bug report up and can fix this quickly, thanks! On Fri, Feb 23, 2018 at 1:26 PM, Damon Doucet wrote: > Hey all, > > Loving the new selectin stuff. I think we've hit a bug with > polymorphic_load=selectin. I've posted a small repro at the bottom. > > The crash we're

[sqlalchemy] Error with polymorphic selectin and adding item to session.info: 'expanding' parameters can't be used with an empty list

2018-02-23 Thread Damon Doucet
Hey all, Loving the new selectin stuff. I think we've hit a bug with polymorphic_load=selectin. I've posted a small repro at the bottom. The crash we're seeing is: sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) 'expanding' parameters can't be used with an empty list [SQL: u'