[sqlalchemy] Re: polymorphic problem in 0.3.5

2007-03-21 Thread Michael Bayer
the literal('c') compiles into a bind parameter, which is not able to export itself as a column on its enclosing selectable, so thats that error (i might want to look into adding a better error for that one, had never seen it before). you want to use a newer function literal_column(c).

[sqlalchemy] Re: polymorphic problem in 0.3.5

2007-03-21 Thread sdobrev
isn't polymorphic_union( { 'a': select..., 'b': select... }, 'kind' ) working in your case? On Wednesday 21 March 2007 21:37:47 Toshio Kuratomi wrote: Hi guys. I'm using sqlalchemy with TurboGears. The code for my project is GPL, so if you need access to more source just let me know: I

[sqlalchemy] Re: polymorphic problem in 0.3.5

2007-03-21 Thread Toshio Kuratomi
On Wed, 2007-03-21 at 16:11 -0400, Michael Bayer wrote: the literal('c') compiles into a bind parameter, which is not able to export itself as a column on its enclosing selectable, so thats that error (i might want to look into adding a better error for that one, had never seen it