I need to find a way how to prove gap lock with insertion only using two separate transactions.
I have tried this example to simulate the gap lock deadlock but it doesn't show any deadlock :
http://thushw.blogspot.com/2010/11/mysql-deadlocks-with-concurrent-inserts.html
Please help how to deliberately cause a deadlock using insertion only with unique values from different transactions.
Thanks in advance.