From 6db3ee42e4e4b39a0ecdd356a6e92970dfedcbfe Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 24 Jul 2022 13:09:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B1=D0=B4=20=D0=BD=D0=B0=20H2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/transaction/problems/DirtyReadExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdbc-transaction/src/main/java/dev/struchkov/example/transaction/problems/DirtyReadExample.java b/jdbc-transaction/src/main/java/dev/struchkov/example/transaction/problems/DirtyReadExample.java index ebc2863..1797bb3 100644 --- a/jdbc-transaction/src/main/java/dev/struchkov/example/transaction/problems/DirtyReadExample.java +++ b/jdbc-transaction/src/main/java/dev/struchkov/example/transaction/problems/DirtyReadExample.java @@ -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);