Заменил бд на H2

This commit is contained in:
Struchkov Mark 2022-07-24 13:09:23 +03:00
parent 0ab798cb5f
commit 6db3ee42e4

View File

@ -17,7 +17,7 @@ public class DirtyReadExample {
connection.setAutoCommit(false);
connection.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
statement.executeUpdate("UPDATE person SET balance = 100000 WHERE id = 1");
statement.executeUpdate("UPDATE person SET balance = 100000 WHERE id = 1");
new OtherTransaction().start();
Thread.sleep(2000);