8226808: PreparedStatement javadoc typo

Reviewed-by: bpb, joehw
This commit is contained in:
Lance Andersen 2019-07-26 15:06:22 -04:00
parent 136cfdb1e3
commit d711c4e18e

View file

@ -47,12 +47,13 @@ import java.io.InputStream;
* <P>
* In the following example of setting a parameter, <code>con</code> represents
* an active connection:
* <PRE>
* <pre>{@code
* BigDecimal sal = new BigDecimal("153833.00");
* PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
* SET SALARY = ? WHERE ID = ?");
* pstmt.setBigDecimal(1, 153833.00)
* pstmt.setInt(2, 110592)
* </PRE>
* pstmt.setBigDecimal(1, sal);
* pstmt.setInt(2, 110592);
* }</pre>
*
* @see Connection#prepareStatement
* @see ResultSet