Re: [sqlalchemy] passing parameters to subquery in mapped select

2011-10-14 Thread Burak Arslan
On 10/14/11 18:01, Michael Bayer wrote: > On Oct 14, 2011, at 10:56 AM, Burak Arslan wrote: > >> On 10/14/11 06:40, Michael Bayer wrote: >>> its a little awkward but if you use bindparam() in the inner select, >>> query.params() can access those parameters just fine, you'd just need to >>> use it

Re: [sqlalchemy] passing parameters to subquery in mapped select

2011-10-14 Thread Michael Bayer
On Oct 14, 2011, at 10:56 AM, Burak Arslan wrote: > On 10/14/11 06:40, Michael Bayer wrote: >> its a little awkward but if you use bindparam() in the inner select, >> query.params() can access those parameters just fine, you'd just need to use >> it in all cases. >> >> there's some related exa

Re: [sqlalchemy] passing parameters to subquery in mapped select

2011-10-14 Thread Burak Arslan
On 10/14/11 06:40, Michael Bayer wrote: > its a little awkward but if you use bindparam() in the inner select, > query.params() can access those parameters just fine, you'd just need to use > it in all cases. > > there's some related example of doing this with a relationship at > http://www.sqla

Re: [sqlalchemy] passing parameters to subquery in mapped select

2011-10-13 Thread Michael Bayer
its a little awkward but if you use bindparam() in the inner select, query.params() can access those parameters just fine, you'd just need to use it in all cases. there's some related example of doing this with a relationship at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/GlobalFilter .