Am 01.07.2010 um 11:36 schrieb chaouche yacine:

Hi list,

There's one problem : the error I'm getting is not on the foreign key constraint it's on the NOT NULL contraint.

This is because SA issues an update to the city, setting the country to NULL. You can see that if you'd use my code that set the bind's echo property to True.

Now honestly I don't know how to fix this, but this might help:

http://www.sqlalchemy.org/docs/05/mappers.html#using-passive-deletes

Passing passive_deletes=True to the OneToMany-relation might solve the issue of trying to update child-relations.

Diez

--
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en.

Reply via email to