Sripathi Raj wrote: I don't begin the transaction with begin. My assumption was that the first
It does. But, the transaction it starts ends with that insert, and a new transaction begins with the next insert.insert operation would automatically begin a transaction.
You need an explicit begin

