On Sep 11, 2007, at 7:31 PM, KyleJ wrote:

> I have three rows in the base_table (id's 1-3) and two rows in the
> relations table.
> So the row with id 1 in the base_table is linked to the other two rows
> view two entries in the relations table:
> INSERT INTO relations (toObj, fromObj) VALUES (2, 1);
> INSERT INTO relations (toObj, fromObj) VALUES (3, 1);

thats an error in your setup right there.  youre saying that  
"fromObj" is the primary key column for Relation.  But right there,  
the same integer id (1) is being inserted twice.  do you mean instaed  
that "fromObj"/"toObj" should compose a composite primary key perhaps ?






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