Skip to content

Commit

Permalink
#70 doc fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 10, 2023
1 parent e2978d5 commit 58f96e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/site/apt/example-select.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> names = new JdbcSession(source)
.sql("SELECT name FROM employee WHERE salary > 35000")
.select(
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/site/apt/index.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58f96e9

Please sign in to comment.