Re: [sqlalchemy] polymorphic query - anon_1, anon_2 ... can they be used?

2010-08-04 Thread Michael Bayer
On Aug 4, 2010, at 11:51 AM, Richard Kuesters wrote: > thanks Michael, that's what i have in mind. since anon_N can't be used, i was > thinking if they can be named or, in other cases, the sql that generates an > anon_N can be extracted? > > ps: the object that contains these anon_N columns is

Re: [sqlalchemy] polymorphic query - anon_1, anon_2 ... can they be used?

2010-08-04 Thread Richard Kuesters
thanks Michael, that's what i have in mind. since anon_N can't be used, i was thinking if they can be named or, in other cases, the sql that generates an anon_N can be extracted? ps: the object that contains these anon_N columns is a orm.Query object created from a polymorphic mapper with multiple

Re: [sqlalchemy] polymorphic query - anon_1, anon_2 ... can they be used?

2010-08-04 Thread Michael Bayer
On Aug 4, 2010, at 10:07 AM, Richard Kuesters wrote: > hi all, > > in a polymorphic query, after a 'print' command i realized that SA generates > some columns named 'anon_X', which can be helpful for me. > > the question is: > > 1. is it safe to use those anon_X columns to refine my query? >

[sqlalchemy] polymorphic query - anon_1, anon_2 ... can they be used?

2010-08-04 Thread Richard Kuesters
hi all, in a polymorphic query, after a 'print' command i realized that SA generates some columns named 'anon_X', which can be helpful for me. the question is: 1. is it safe to use those anon_X columns to refine my query? --- regarding this, my concern is that once the polymorphic query is done