in reply to Re^2: Testing if DBI has a commit pending?
in thread Testing if DBI has a commit pending?

This is exactly what commit is for though. Issue your update, issue your insert. If the insert fails the rollback, otherwise commit. I'm not sure how an insert before an update would cause such a business rule to fail, but if that is indeed the case then just rollback on failure. At that point you would then retry with a new update/insert/commit cycle.


___________
Eric Hodges
  • Comment on Re^3: Testing if DBI has a commit pending?