Session.add(c.user)
Session.commit()
Session.flush()

This code works, but 2 weeks ago I'v get errors like
InvalidRequestError: Instance <User at 0x3cbc390> is not present in
this Session

I try to add Session.expunge(c.user) before Session.add(c.user), it
helps, but sometimes i'v get another error.

What's wrong?

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