-3

I have 2 terminals in both of them i set autocommit= 0 in the first terminal i insert 5 rows and then i type commit it supposed now in the second terminal i can see the updates right? but this is not true i need to type commit in the second terminal before i type 'select * from table' why this is necessary can someone explain me?

Iłya Bursov
  • 23,342
  • 4
  • 33
  • 57
kkafkas
  • 322
  • 1
  • 3
  • 13

1 Answers1

1

it looks weird, but according to mysql bug and blog entry it is expected behavior with REPEATABLE READ isolation level, change level to READ COMMITTED to avoid this problem

set session transaction isolation level read committed;
Iłya Bursov
  • 23,342
  • 4
  • 33
  • 57