On Mar 19, 2014, at 2:49 PM, lars van gemerden <l...@rational-it.com> wrote:
> Hi all, > > I solved this before, but i took me half a day and a lot of guessing and i > forgot. > > If i add (sometimes calculated) columns to a query and i want to set the > names manually (via label()?), how do i do that? How will i make them show up > in a resulting KeyedTuple/column_descriptions()? yes, label(). (any_col + something_else * func.foo_bar()).label('mylabel') > > Cheers, Lars > > -- > 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/d/optout. -- 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/d/optout.