Re: [Sqlalchemy-users] inequality in select_by

2006-05-16 Thread Michael Bayer
correction (just made some edits): http://www.sqlalchemy.org/docs_02/ datamapping.myt#datamapping_selectrelations_jointo On May 16, 2006, at 7:36 PM, Michael Bayer wrote: select_by uses python keyword arguments, where each keyword represents a property established on your mapper (or a sub-

Re: [Sqlalchemy-users] inequality in select_by

2006-05-16 Thread Michael Bayer
select_by uses python keyword arguments, where each keyword represents a property established on your mapper (or a sub-mapper). it does not currently (yet?) support a function-based query language that deals with property names...if you want boolean operations, you have to deal with column

[Sqlalchemy-users] inequality in select_by

2006-05-16 Thread Keith Edmunds
I've run into what is either a bug or a misunderstanding. The line: results = mapper.select_by(priority = 3) does exactly what I'd expect, producing a result set filtered by priority. The line: results = mapper.select_by(priority != 3) gives: NameError: name 'priority' is not defined Can any