it doesn't seem to work for me, I just did two print statements
print type(query)
print query.inner_columns()

and got the following traceback

<class 'sqlalchemy.sql.expression.Select'>
Traceback (most recent call last):
    print query.inner_columns()
TypeError: 'generator' object is not callable


On May 21, 12:21 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> calling inner_columns() on the select() returns what actually gets  
> rendered.  The "exported" columns, i.e. those which you'd use when  
> using the select() as a subquery, are accessible via the .c. attribute  
> on the select() which has a dictionary interface.
>
> On May 21, 2008, at 12:01 PM, vkuznet wrote:
>
>
>
> > Hi,
> > is there any way to ask select object what is suppose to select? There
> > is a method locate_all_froms which return FROM part of select, but I'm
> > interesting in select part of SQL statement.
>
> > So, something like:
>
> > s = select([table1.c.a,table2.c.b]....)
> > listOfSelectedColumns = s.get_selectable_columns()
>
> > which will return set or list of [table1.c.a,table2.c.b].
>
> > Thanks,
> > Valentin.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to