On Monday, 12 March 2012 01:35:10 UTC-4, Michael Bayer wrote:
>
> both the left and right sides of an expression are ultimately represented 
> as SQLAlchemy ColumnElements.   When you say "somecol == 'somestr'", the 
> 'somestr' part is coerced into a "literal" object as a result of it being 
> pulled into the "binary" expression (that is, an expression with a left, 
> right and an operator in the middle).   You can do this explicitly so that 
> you can call operators from either side:
>
> literal("foobar").like(foo.bar)
>
Thanks!  That looks like exactly what I need.  I don't see any reference to 
that method in the documentation pdf, and even searching for it 
specifically it's not very prominent in the google results, so I guess it's 
no wonder I didn't find it on my own.  Now that I know what I'm looking for 
it's easy to find in pydoc though.

I'll be able to give this a test tonight.

Thanks again!

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/gh4ytYd_cNMJ.
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.

Reply via email to