diff --git a/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Insert.java b/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Insert.java index 8145556..79946dd 100644 --- a/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Insert.java +++ b/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Insert.java @@ -19,7 +19,7 @@ public static void doInsert(String url) throws IOException, ServerException, Int Placeholders.of("int_for_bar1", long.class), Placeholders.of("double_for_bar2", double.class), Placeholders.of("char_for_bar3", String.class)).get(); - Transaction transaction = sqlClient.createTransaction().get();) { + Transaction transaction = sqlClient.createTransaction().get()) { // insert first data into foo table transaction.executeStatement(preparedStatement, diff --git a/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Select.java b/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Select.java index 1b6c755..550a5cb 100644 --- a/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Select.java +++ b/modules/clients/src/main/java/com/tsurugidb/tsubakuro/examples/book/Select.java @@ -14,9 +14,9 @@ public static void doSelect(String url) throws IOException, ServerException, Int try ( Session session = SessionBuilder.connect(url).create(); SqlClient sqlClient = SqlClient.attach(session); - Transaction transaction = sqlClient.createTransaction().get();) { + Transaction transaction = sqlClient.createTransaction().get()) { - try (ResultSet resultSet = transaction.executeQuery("SELECT * FROM foo").get();) { + try (ResultSet resultSet = transaction.executeQuery("SELECT * FROM foo").get()) { doSomeWorkUsingResultset(resultSet); } transaction.commit().get();