I have two sessions doing this.
Session 1>start transaction;
Session 1>select * from account for update;
Session 2>start transaction;
Session 2>select * from account for update; //waiting.
Since IX lock is compatible with IX lock shouldn't session two also get IX lock without waiting.
Even the following set of statemnts do not work.
Session 1>start transaction;
Session 1>select * from account where i = 1 for update;
Session 2>start transaction;
Session 2>select * from account where i = 2 for update; //waiting.
The isolation level is Repeatable Read
. Are things different in this isolation level?
Source for compatibility this