Yes - that is exactly the problem that transactions are intended to take care of.
What would writing raw SQL do? Raw SQL statements (unless explicitly contained in a transaction) would be executed outside of the transaction and therefore still vulnerable. On May 31, 6:57 pm, David J <da...@styleflare.com> wrote: > I am confused. Isn't this exactly what transactions are for? > On May 31, 2011 7:54 PM, "pbreit" <pbreitenb...@gmail.com> wrote: > > > > > We aren't talking about a bank account (and even if we were, that's why > > banks rely on reconciliation procedures), we are talking about a booking > > system. It's like security, you're never 100%, just as close to 100% as > you > > need to be.