Why does this SQL INSERT create duplicate IDs after rollback?

Why does this SQL INSERT create duplicate IDs after rollback. The SQL code relies on sequential auto increment. In MySQL rollback consumes the value and the next insert gets a gap. In SQL systems expecting contiguous IDs this breaks logic.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqlda...

https://www.youtube.com/watch?v=udaZivmnDgQ

Why does this SQL INSERT create duplicate IDs after rollback? #sqlengineering

YouTube