You best look at 'transaction.py': it uses InnoDB storage engine where you need to do an explicit commit. 'inserts.py' uses the default MyISAM (which is non transactional and doesn't need a commit).
It's not an error in 'inserts.py', but indeed, we need to update it a bit to include a db.commit().
You best look at 'transaction.py': it uses InnoDB storage engine where you need to do an explicit commit. 'inserts.py' uses the default MyISAM (which is non transactional and doesn't need a commit).
It's not an error in 'inserts.py', but indeed, we need to update it a bit to include a db.commit().