Re: [Sqlalchemy-users] bind parameters from mapper

2006-03-27 Thread Michael Bayer
yah like user_mapper.select(and_(c.user_id>3, user_age > bindparam('age'), user_age < bindparam('age2')), params={'age':5, 'age2':10}) On Mar 27, 2006, at 5:22 AM, Sandro Dentella wrote: Hi all, can I use bind parameters from mapper? i would like to pass from: result = user_mapper.se

[Sqlalchemy-users] bind parameters from mapper

2006-03-27 Thread Sandro Dentella
Hi all, can I use bind parameters from mapper? i would like to pass from: result = user_mapper.select(and_( user_table.c.user_id>3, "user_age > 35", "user_age < 60")) to something using bind parameters: result = user_mapper.select(and_( c.user_id>3, "user_age > :age", "