On Oct 28, 2007, at 3:39 PM, Ron wrote:

>
> I've been trying to migrate my code to to 0.4 and I'm getting stuck on
> this error.  I haven't been able to narrow down what property of my
> schema or code triggers this, but I thought I'd ask the group in case
> there was an easy answer.
>
> Here Thing is a class that is mapped to a table with a single column.
> It has a relation to an attribute table with (thing_id, key, value)
> columns.  I have a subclass of Thing called Server, that instead of
> mapping directly to the table maps to a select on the thing table
> where the thing has certain attributes from the attribute table.  If I
> create a Server then add attributes to it then flush the data I get no
> errors.  But if I try to query for a Server to which I tried to add
> attributes I get the attached error.  Adding attributes straight to
> Things or querying for Servers that I didn't add attributes to does
> not produce the error.
>
> Not sure if any of that was clear, but it's a start.  Any ideas?

youd have to attach your full table setup and mappings to have any  
idea how this error is occuring.   id probably classify this as a bug  
since if your mapping has something SA can't handle, it should be  
raising a specific error at compile time instaed of randomly failing  
at query time.



--~--~---------~--~----~------------~-------~--~----~
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