I have a loop with db modifications and every loop ended with commit.
What if a commit throws exception ? As I know we must try to rollback.
But do we need to continue the loop ?
As for me I would exit from the function with a return false (after the connection.close) or what ever, forcing the further db modifications is pointles then.
Is this would be the best way or exists another ?