just use the plain string and not text(), and use :paramname as the
bind param format. example is here:
http://www.sqlalchemy.org/docs/05/ormtutorial.html#datamapping_querying_using
On Sep 4, 2008, at 9:25 AM, Christoph Zwerschke wrote:
>
> This does not work either:
>
> print session.query(User).filter(
> text("(last_name, first_name) < (%(last_name)s, %(first_name)s)",
> )).params(first_name='Joe', last_name='Doe').all()
>
> Running out of ideas...
>
> -- Christoph
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---