On 22/11/2013 15:23, Michael Bayer wrote:
(this latter query will likely have more stuff in it, not sure I used
.select_from(...).join(...) correctly either ;-)
Hope that illustrates what I'm after…
take your original cte and use it just like that, just call
positions.c.instrument_id for that column.
or do you absolutely need to start with a raw string ?
I don't *need* to ;-) ...but I was wondering how, starting with a raw
string and a couple of variables to bind in, I could get a cte that I
could join against an ORM-mapped object?
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.