Ok...maybe I'm missing something, but why wasn't that raised in this
case instead of the rather cryptic exception?

On Feb 18, 4:59 pm, Michael Bayer <[email protected]> wrote:
> On Feb 18, 2010, at 1:16 PM, Hollister wrote:
>
> > I ran into this also and it was caused by forgetting to map the class
> > to the table.
> > Make sure you have a line like:
>
> > orm.mapper(TaskAction, taskaction_table)
>
> > Mike: should there be a more specific error message for a missing
> > mapping?
>
> there's a very specific error for that its sqlalchemy.orm.exc.UnmappedError.
>
>
>
> > -aw
>
> > On Feb 3, 11:04 am, "Michael Bayer" <[email protected]> wrote:
> >> King Simon-NFHD78 wrote:
>
> >>> The line below the one you're complaining about is telling you what the
> >>> column in question is:
>
> >>>   Invalid column expression '<class '__main__.TaskAction'>'
>
> >>> So somehow, you've passed your TaskAction class in a place where SA is
> >>> expecting a column expression. I think we'd need to see the command that
> >>> you actually typed in to work out what the problem is.
>
> >> Also, again, please upgrade to 0.5.8.   Hundreds of bugs and sub-optimal
> >> behaviors have been fixed since 0.5.4p2 so you may get better results.
>
> >>> Simon
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "sqlalchemy" group.
> >>> To post to this group, send email to [email protected].
> >>> 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.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sqlalchemy" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/sqlalchemy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
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