Skip to content

Commit

Permalink
Fix typo in method call - getObjecct => getObject
Browse files Browse the repository at this point in the history
  • Loading branch information
asmarcz authored and kdubb committed Aug 15, 2021
1 parent ee65e8a commit 8608ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/src/docs/asciidoc/user-guide/jdbc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ counterpart datatype, and instead use `getObject` providing the type of object y
----
ResultSet rs = statement.getResultSet();
LocalDateTime incorrect = rs.getTimestamp(1).toLocalDateTime(); <1>
LocalDateTime correct = rs.getObjecct(1, LocalDateTime.class); <2>
LocalDateTime correct = rs.getObject(1, LocalDateTime.class); <2>
----
<1> [red]#Incorrect method using convenience API and conversion#
<2> Correct method using `getObject` and no conversion.
Expand Down

0 comments on commit 8608ed1

Please sign in to comment.