go-database-sql-tutorial
go-database-sql-tutorial copied to clipboard
Changes to Prepare.md to compensate for unintended behaviour
By using defer tx.Rollback()
a rollback will always be attempted when a function returns, which in my opinion is seems as unintended.
Furthermore, using log.Fatal
actually terminates the execution, which rarely is what you want to happen.
nudge @looopTools