On Apr 11, 2007, at 9:56 AM, Arun Kumar PG wrote: > Guys, > > I have a search form and I want to compose the select_by() query > dynamically as per the prameters but the select_by() on query > object does not accepts string type query i.e. session.query > (User).select_by(" User.c.Id == 1 and ...") >
the specific thing you want to do there would look like: session.query(User).select_by(text(" User.c.Id == 1 and ...")) but maybe you mean: session.query(User).select_by(**{"id": 1, "foo" : "bar"}) ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---