Re: [sqlalchemy] GlobalFilter recipe

2017-11-01 Thread Mike Bayer
On Wed, Nov 1, 2017 at 12:47 AM, Jason Gosnell wrote: > Hi folks, > > Is the GlobalFilter recipe expected to still work with newer versions of > sqlalchemy? I've copied and pasted the code right out of the recipe and get > this assertion: > > 2017-10-31 21:38:22,391 INFO sqlalchemy.engine.base.Eng

[sqlalchemy] GlobalFilter recipe

2017-10-31 Thread Jason Gosnell
Hi folks, Is the GlobalFilter recipe expected to still work with newer versions of sqlalchemy? I've copied and pasted the code right out of the recipe and get this assertion: 2017-10-31 21:38:22,391 INFO sqlalchemy.engine.base.Engine SELECT parent.id AS parent_id, parent.timestamp AS parent_ti

Re: [sqlalchemy] GlobalFilter recipe blows up with 0.6.1

2010-07-05 Thread Chris Withers
Michael Bayer wrote: frozendict has a union() method. query._params = query._params.union(...) Okay, I've updated the GlobalFilter and DropEverything recipes :-) Chris -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, se

Re: [sqlalchemy] GlobalFilter recipe blows up with 0.6.1

2010-07-05 Thread Michael Bayer
frozendict has a union() method. query._params = query._params.union(...) On Jul 5, 2010, at 11:28 AM, Chris Withers wrote: > Hi All, > > This recipe: > > http://www.sqlalchemy.org/trac/wiki/UsageRecipes/GlobalFilter > > ...blows up as follows in SA 0.6.1 on Python 2.6 around here: > > pare

[sqlalchemy] GlobalFilter recipe blows up with 0.6.1

2010-07-05 Thread Chris Withers
Hi All, This recipe: http://www.sqlalchemy.org/trac/wiki/UsageRecipes/GlobalFilter ...blows up as follows in SA 0.6.1 on Python 2.6 around here: parents = session.query(Parent).\ options( TemporalOption( datetime.datetime(2009, 10, 16, 12, 00, 00),