Hello list,

pardon the innocent/dumb question: wouldn't it make sense to expire_all()
on begin_nested() and rollback()?

My concrete example goes like this:

  savepoint = session.begin_nested()
  session.delete(stuff)
  session.begin_nested()
  # Now, if I don't call session.expire_all() here, stuff won't be perceived as 
gone
  perform_checks_while_pretending_that_stuff_is_gone()
  savepoint.rollback()
  # And if I don't call session.expire_all() here, stuff won't be perceived back

I'd love to hear your thoughts on this.

Thanks,
Wolfgang

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to