From 58f96e9e563d209cc62e8d92bb8578c22e5b8deb Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sat, 10 Jun 2023 08:30:27 +0300 Subject: [PATCH] #70 doc fixed --- src/site/apt/example-select.apt.vm | 4 ++-- src/site/apt/index.apt.vm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/site/apt/example-select.apt.vm b/src/site/apt/example-select.apt.vm index 7093f27..3106a29 100644 --- a/src/site/apt/example-select.apt.vm +++ b/src/site/apt/example-select.apt.vm @@ -12,7 +12,7 @@ Selecting SQL Rows Through JDBC +-- public class Main { - public static void main(String[] args) { + public static void main(String[] args) throws SQLException { Collection names = new JdbcSession(source) .sql("SELECT name FROM employee WHERE salary > 35000") .select( @@ -37,7 +37,7 @@ public class Main { +-- public class Main { - public static void main(String[] args) { + public static void main(String[] args) throws SQLException { String name = new JdbcSession(source) .sql("SELECT name FROM employee WHERE name = ?") .set("Jeff Bridges") diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm index f5bd357..6e53831 100644 --- a/src/site/apt/index.apt.vm +++ b/src/site/apt/index.apt.vm @@ -17,7 +17,7 @@ Fluent JDBC Wrapper +-- import com.jcabi.jdbc.JdbcSession; public class Main { - public static void main(String[] args) { + public static void main(String[] args) throws SQLException { String name = new JdbcSession(source) .sql("SELECT name FROM foo WHERE id = ?") .set(123)